FrmReceivablesAnalysis.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Forms>
  3. <Form Name="FrmReceivablesAnalysis">
  4. <Client>
  5. <Events>
  6. <Load><![CDATA[
  7. @Title="应收帐款帐龄分析";
  8. GetSchema();
  9. txtCoNo.CValue=GetCurrentCompanyNo();
  10. txtCoName.CValue=GetCurrentCompanyShortName();
  11. Empty();
  12. ikTextBox2.Text="100000000.00";
  13. ]]></Load>
  14. <Closing>
  15. ;
  16. </Closing>
  17. <Closed>
  18. ;
  19. </Closed>
  20. </Events>
  21. <Mode>
  22. <Search>
  23. <Lable name="Search"/>
  24. </Search>
  25. </Mode>
  26. <Controls>
  27. <IKTextButton name="tbCustomerNo1" >
  28. <Events>
  29. <Click>
  30. @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNo1.CValue);
  31. if( @temp == "" )
  32. return;
  33. tbCustomerNo1.CValue = @temp;
  34. </Click>
  35. <TextBoxButtonTextChanged>
  36. tbCustomerNo2.CValue = tbCustomerNo1.CValue;
  37. </TextBoxButtonTextChanged>
  38. </Events>
  39. </IKTextButton>
  40. <IKTextButton name="tbCustomerNo2" >
  41. <Events>
  42. <Click>
  43. @temp = ShowSearchBox("CustomerSearch","INFOMATION",tbCustomerNo2.CValue);
  44. if( @temp == "" )
  45. return;
  46. tbCustomerNo2.CValue = @temp;
  47. </Click>
  48. </Events>
  49. </IKTextButton>
  50. <IKTextButton name="tbSaleInvoiceNo1" >
  51. <Events>
  52. <Click>
  53. @temp = ShowSearchBox("SaleInvoiceNoSearch","NODEPOT","tbSaleInvoiceNo1",tbSaleInvoiceNo1.CValue);
  54. if( @temp == "" )
  55. return;
  56. tbSaleInvoiceNo1.CValue = @temp;
  57. </Click>
  58. <TextBoxButtonTextChanged>
  59. tbSaleInvoiceNo2.CValue = tbSaleInvoiceNo1.CValue;
  60. </TextBoxButtonTextChanged>
  61. </Events>
  62. </IKTextButton>
  63. <IKTextButton name="tbSaleInvoiceNo2" >
  64. <Events>
  65. <Click>
  66. @temp = ShowSearchBox("SaleInvoiceNoSearch","NODEPOT","tbSaleInvoiceNo2", tbSaleInvoiceNo2.CValue);
  67. if( @temp == "" )
  68. return;
  69. tbSaleInvoiceNo2.CValue = @temp;
  70. </Click>
  71. </Events>
  72. </IKTextButton>
  73. <IKTextButton name="tbInvoiceNo1" >
  74. <Events>
  75. <Click>
  76. @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","tbInvoiceNo1", tbInvoiceNo1.CValue);
  77. if( @temp == "" )
  78. return;
  79. tbInvoiceNo1.CValue = @temp;
  80. </Click>
  81. <TextBoxButtonTextChanged>
  82. tbInvoiceNo2.CValue = tbInvoiceNo1.CValue;
  83. </TextBoxButtonTextChanged>
  84. </Events>
  85. </IKTextButton>
  86. <IKTextButton name="tbInvoiceNo2" >
  87. <Events>
  88. <Click>
  89. @temp = ShowSearchBox("InvoiceNoSearch","NODEPOT","tbInvoiceNo2", tbInvoiceNo2.CValue);
  90. if( @temp == "" )
  91. return;
  92. tbInvoiceNo2.CValue = @temp;
  93. </Click>
  94. </Events>
  95. </IKTextButton>
  96. <IKButton name="btnView">
  97. <Events>
  98. <Click>
  99. Empty();
  100. @StartNo_Customer = DBNull();
  101. @EndNo_Customer = DBNull();
  102. @StartToGetBalance_Customer=DBNull();
  103. @EndToGetBalance_Customer=DBNull();
  104. @StartNo_SaleInvoice = DBNull();
  105. @EndNo_SaleInvoice = DBNull();
  106. @StartNo_Invoice = DBNull();
  107. @EndNo_Invoice = DBNull();
  108. if(tbCustomerNo1.CValue != "")
  109. @StartNo_Customer = tbCustomerNo1.CValue;
  110. if(tbCustomerNo2.CValue != "")
  111. @EndNo_Customer = tbCustomerNo2.CValue;
  112. @StartToGetBalance_Customer=ikTextBox1.CValue;
  113. @EndToGetBalance_Customer=ikTextBox2.CValue;
  114. if(tbSaleInvoiceNo1.CValue!="")
  115. @StartNo_SaleInvoice=tbSaleInvoiceNo1.CValue;
  116. if(tbSaleInvoiceNo2.CValue!="")
  117. @EndNo_SaleInvoice=tbSaleInvoiceNo2.CValue;
  118. if(tbInvoiceNo1.CValue!="")
  119. @StartNo_Invoice=tbInvoiceNo1.CValue;
  120. if(tbInvoiceNo2.CValue!="")
  121. @EndNo_Invoice=tbInvoiceNo2.CValue;
  122. Search("SearchReceivablesAnalysis",@StartNo_Customer,@EndNo_Customer,@StartToGetBalance_Customer,@EndToGetBalance_Customer,@StartNo_SaleInvoice,
  123. @EndNo_SaleInvoice,@StartNo_Invoice,@EndNo_Invoice,DateTimeNow(),GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID());
  124. if(RowCount("#FrmReceivablesAnalysis") ==0)
  125. {
  126. MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title);
  127. }
  128. else
  129. {
  130. PrintReport("FrmReceivablesAnalysis","FrmReceivablesAnalysis");
  131. }
  132. </Click>
  133. </Events>
  134. </IKButton>
  135. <IKButton name="btnExcel">
  136. <Events>
  137. <Click>
  138. Empty();
  139. @StartNo_Customer = DBNull();
  140. @EndNo_Customer = DBNull();
  141. @StartToGetBalance_Customer=DBNull();
  142. @EndToGetBalance_Customer=DBNull();
  143. @StartNo_SaleInvoice = DBNull();
  144. @EndNo_SaleInvoice = DBNull();
  145. @StartNo_Invoice = DBNull();
  146. @EndNo_Invoice = DBNull();
  147. if(tbCustomerNo1.CValue != "")
  148. @StartNo_Customer = tbCustomerNo1.CValue;
  149. if(tbCustomerNo2.CValue != "")
  150. @EndNo_Customer = tbCustomerNo2.CValue;
  151. @StartToGetBalance_Customer=ikTextBox1.CValue;
  152. @EndToGetBalance_Customer=ikTextBox2.CValue;
  153. if(tbSaleInvoiceNo1.CValue!="")
  154. @StartNo_SaleInvoice=tbSaleInvoiceNo1.CValue;
  155. if(tbSaleInvoiceNo2.CValue!="")
  156. @EndNo_SaleInvoice=tbSaleInvoiceNo2.CValue;
  157. if(tbInvoiceNo1.CValue!="")
  158. @StartNo_Invoice=tbInvoiceNo1.CValue;
  159. if(tbInvoiceNo2.CValue!="")
  160. @EndNo_Invoice=tbInvoiceNo2.CValue;
  161. Search("SearchReceivablesAnalysis",@StartNo_Customer,@EndNo_Customer,@StartToGetBalance_Customer,@EndToGetBalance_Customer,@StartNo_SaleInvoice,
  162. @EndNo_SaleInvoice,@StartNo_Invoice,@EndNo_Invoice,DateTimeNow(),GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID());
  163. if(RowCount("#FrmReceivablesAnalysis") ==0)
  164. {
  165. MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title);
  166. }
  167. else
  168. {
  169. ExportReport("Excel","FrmReceivablesAnalysis","FrmReceivablesAnalysis");
  170. }
  171. </Click>
  172. </Events>
  173. </IKButton>
  174. <IKButton name="btnWord">
  175. <Events>
  176. <Click>
  177. Empty();
  178. @StartNo_Customer = DBNull();
  179. @EndNo_Customer = DBNull();
  180. @StartToGetBalance_Customer=DBNull();
  181. @EndToGetBalance_Customer=DBNull();
  182. @StartNo_SaleInvoice = DBNull();
  183. @EndNo_SaleInvoice = DBNull();
  184. @StartNo_Invoice = DBNull();
  185. @EndNo_Invoice = DBNull();
  186. if(tbCustomerNo1.CValue != "")
  187. @StartNo_Customer = tbCustomerNo1.CValue;
  188. if(tbCustomerNo2.CValue != "")
  189. @EndNo_Customer = tbCustomerNo2.CValue;
  190. @StartToGetBalance_Customer=ikTextBox1.CValue;
  191. @EndToGetBalance_Customer=ikTextBox2.CValue;
  192. if(tbSaleInvoiceNo1.CValue!="")
  193. @StartNo_SaleInvoice=tbSaleInvoiceNo1.CValue;
  194. if(tbSaleInvoiceNo2.CValue!="")
  195. @EndNo_SaleInvoice=tbSaleInvoiceNo2.CValue;
  196. if(tbInvoiceNo1.CValue!="")
  197. @StartNo_Invoice=tbInvoiceNo1.CValue;
  198. if(tbInvoiceNo2.CValue!="")
  199. @EndNo_Invoice=tbInvoiceNo2.CValue;
  200. Search("SearchReceivablesAnalysis",@StartNo_Customer,@EndNo_Customer,@StartToGetBalance_Customer,@EndToGetBalance_Customer,@StartNo_SaleInvoice,
  201. @EndNo_SaleInvoice,@StartNo_Invoice,@EndNo_Invoice,DateTimeNow(),GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID());
  202. if(RowCount("#FrmReceivablesAnalysis") ==0)
  203. {
  204. MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title);
  205. }
  206. else
  207. {
  208. ExportReport("Word","FrmReceivablesAnalysis","FrmReceivablesAnalysis");
  209. }
  210. </Click>
  211. </Events>
  212. </IKButton>
  213. <IKButton name="btnPrint">
  214. <Events>
  215. <Click>
  216. Empty();
  217. @StartNo_Customer = DBNull();
  218. @EndNo_Customer = DBNull();
  219. @StartToGetBalance_Customer=DBNull();
  220. @EndToGetBalance_Customer=DBNull();
  221. @StartNo_SaleInvoice = DBNull();
  222. @EndNo_SaleInvoice = DBNull();
  223. @StartNo_Invoice = DBNull();
  224. @EndNo_Invoice = DBNull();
  225. if(tbCustomerNo1.CValue != "")
  226. @StartNo_Customer = tbCustomerNo1.CValue;
  227. if(tbCustomerNo2.CValue != "")
  228. @EndNo_Customer = tbCustomerNo2.CValue;
  229. @StartToGetBalance_Customer=ikTextBox1.CValue;
  230. @EndToGetBalance_Customer=ikTextBox2.CValue;
  231. if(tbSaleInvoiceNo1.CValue!="")
  232. @StartNo_SaleInvoice=tbSaleInvoiceNo1.CValue;
  233. if(tbSaleInvoiceNo2.CValue!="")
  234. @EndNo_SaleInvoice=tbSaleInvoiceNo2.CValue;
  235. if(tbInvoiceNo1.CValue!="")
  236. @StartNo_Invoice=tbInvoiceNo1.CValue;
  237. if(tbInvoiceNo2.CValue!="")
  238. @EndNo_Invoice=tbInvoiceNo2.CValue;
  239. Search("SearchReceivablesAnalysis",@StartNo_Customer,@EndNo_Customer,@StartToGetBalance_Customer,@EndToGetBalance_Customer,@StartNo_SaleInvoice,
  240. @EndNo_SaleInvoice,@StartNo_Invoice,@EndNo_Invoice,DateTimeNow(),GetRight("客户基本资料","全权查看")?DBNull():GetLoginUserID());
  241. if(RowCount("#FrmReceivablesAnalysis") ==0)
  242. {
  243. MessageBox("没有查找到与此相匹配的纪录,未产生报表!",@Title);
  244. }
  245. else
  246. {
  247. ExportReport("PrintToPrinter","FrmReceivablesAnalysis","FrmReceivablesAnalysis");
  248. }
  249. </Click>
  250. </Events>
  251. </IKButton>
  252. </Controls>
  253. <ChildForms>
  254. <ChildForm name="SaleInvoiceNoSearch" DataSource="SaleInvoice" SearchFunction="SearchAllSaleInvoiceNo" SearchFunctionCondition="SearchCustomerCondition" SearchFunctionByNo="">
  255. <DataColumn Index="0" MappingName="#SaleInvoice.No_SaleInvoice" HeaderText="销项发票单号" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  256. <DataColumn Index="1" MappingName="#SaleInvoice.Date_SaleInvoice" HeaderText="制单日期" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  257. <DataColumn Index="2" MappingName="#SaleInvoice.ShortName_Customer" HeaderText="客户简称" Width="75" ColumnType="IKDataGridTextBoxColumn"/>
  258. </ChildForm>
  259. <ChildForm name="CustomerSearch" DataSource="Customer" SearchFunction="SearchAllCustomer" SearchFunctionCondition="SearchCustomerCondition" SearchFunctionByNo="" MappingName="客户">
  260. <DataColumn Index="0" MappingName="#Customer.No_Customer" HeaderText="客户编号" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  261. <DataColumn Index="1" MappingName="#Customer.ShortName_Customer" HeaderText="客户简称" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  262. <DataColumn Index="2" MappingName="#Customer.Type_Customer" HeaderText="客户类型" Width="75" ColumnType="IKDataGridTextBoxColumn"/>
  263. <DataColumn Index="3" MappingName="#Customer.Level_Customer" HeaderText="客户等级" Width="75" ColumnType="IKDataGridTextBoxColumn"/>
  264. <DataColumn Index="4" MappingName="#Customer.IsGeneric_Customer" HeaderText="一般客户" Width="75" ColumnType="IKDataGridBoolColumn"/>
  265. </ChildForm>
  266. <ChildForm name="InvoiceNoSearch" DataSource="SaleInvoice" SearchFunction="SearchAllInvoiceNo" SearchFunctionByNo="" MappingName="发票编号">
  267. <DataColumn Index="0" MappingName="#SaleInvoice.No_Invoice" HeaderText="发票编号" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  268. <DataColumn Index="1" MappingName="#SaleInvoice.InvoiceDate_SaleInvoice" HeaderText="发票日期" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  269. </ChildForm>
  270. </ChildForms>
  271. <FormatString>
  272. <Format name="SearchCustomerCondition">
  273. if(GetRight("客户基本资料","全权查看"))
  274. {
  275. FormatString("");
  276. }
  277. else
  278. {
  279. FormatString(" Customer.ID_Creator='{0}' ",GetLoginUserID());
  280. }
  281. </Format>
  282. </FormatString>
  283. </Client>
  284. <Server>
  285. <!--<Tables>
  286. <Table name="FrmReceivablesAnalysis">
  287. <GetSchema CmdType="Text" CmdText="
  288. Select Top 0 No_Customer,ShortName_Customer,convert(decimal(14,4),0) As Total,convert(decimal(14,4),0) As NotPast,convert(decimal(14,4),0) As InOne,convert(decimal(14,4),0) As InTwo,convert(decimal(14,4),0) As InThree,convert(decimal(14,4),0) As PastThree,convert(nvarchar(32),'') As IsSuspend
  289. From Customer
  290. ">
  291. </GetSchema>
  292. </Table>
  293. </Tables>-->
  294. <Search>
  295. <SearchAllSaleInvoiceNo CmdType="Text" CmdText="
  296. Select SaleInvoice.No_SaleInvoice,SaleInvoice.Date_SaleInvoice,Customer.ShortName_Customer,Customer.ID_Creator
  297. From SaleInvoice
  298. Join Customer ON Customer.ID_Customer=SaleInvoice.ID_Customer
  299. ">
  300. <Tables>
  301. <Table name="AllSaleInvoiceNo" />
  302. </Tables>
  303. </SearchAllSaleInvoiceNo>
  304. <SearchAllCustomer CmdType="Text" CmdText="SELECT Customer.No_Customer,Customer.ShortName_Customer,Customer.Type_Customer,Customer.Level_Customer,Customer.IsGeneric_Customer FROM Customer ">
  305. <Tables>
  306. <Table name="AllCustomer" />
  307. </Tables>
  308. </SearchAllCustomer>
  309. <SearchAllInvoiceNo CmdType="Text" CmdText="SELECT No_Invoice,InvoiceDate_SaleInvoice FROM SaleInvoice">
  310. <Tables>
  311. <Table name="AllInvoiceNo" />
  312. </Tables>
  313. </SearchAllInvoiceNo>
  314. <SearchReceivablesAnalysis CmdType="Text" CmdText="
  315. Select No_Customer,ShortName_Customer,(ToGetBalance_Customer-(IsNull(NotPast,0)+IsNull(InOne,0)+IsNull(InTwo,0)+IsNull(InThree,0)+IsNull(PastThree,0))) As OpeningMoney,(IsNull(NotPast,0)+IsNull(InOne,0)+IsNull(InTwo,0)+IsNull(InThree,0)+IsNull(PastThree,0)) As Total,IsNull(NotPast,0) As NotPast,IsNull(InOne,0) As InOne,IsNull(InTwo,0) As InTwo,IsNull(InThree,0) As InThree,IsNull(PastThree,0) As PastThree,IsSuspend=case IsNull(SuspendDate_Customer,0) when 0 Then '否' else '是' end
  316. From Customer
  317. Left Join
  318. (
  319. Select SaleInvoice.ID_Customer,Sum(Amount_SaleInvoice-StrikedAmount_SaleInvoice) As NotPast
  320. From SaleInvoice
  321. Where DateDiff(day,PayDate_SaleInvoice,@currentDate) &lt;=0
  322. And SaleInvoice.ID_Assessor Is Not Null And Disable_SaleInvoice=0
  323. And SaleInvoice.No_SaleInvoice between IsNull(@StartNo_SaleInvoice,'') And IsNull(@EndNo_SaleInvoice,(Select Max(No_SaleInvoice) From SaleInvoice))
  324. And IsNull(SaleInvoice.No_Invoice,'') between IsNull(@StartNo_Invoice,'') And IsNull(@EndNo_Invoice,(Select Max(No_Invoice) From SaleInvoice))
  325. Group By ID_Customer
  326. )a On a.ID_Customer=Customer.ID_Customer
  327. Left Join
  328. (
  329. Select SaleInvoice.ID_Customer,Sum(Amount_SaleInvoice-StrikedAmount_SaleInvoice) As InOne
  330. From SaleInvoice
  331. Where DateDiff(day,PayDate_SaleInvoice,@currentDate) &gt; 0 And DateDiff(day,DateAdd(month,1,PayDate_SaleInvoice),@currentDate) &lt;= 0
  332. And SaleInvoice.ID_Assessor Is Not Null And Disable_SaleInvoice=0
  333. And SaleInvoice.No_SaleInvoice between IsNull(@StartNo_SaleInvoice,'') And IsNull(@EndNo_SaleInvoice,(Select Max(No_SaleInvoice) From SaleInvoice))
  334. And IsNull(SaleInvoice.No_Invoice,'') between IsNull(@StartNo_Invoice,'') And IsNull(@EndNo_Invoice,(Select Max(No_Invoice) From SaleInvoice))
  335. Group By ID_Customer
  336. )b On b.ID_Customer=Customer.ID_Customer
  337. Left Join
  338. (
  339. Select SaleInvoice.ID_Customer,Sum(Amount_SaleInvoice-StrikedAmount_SaleInvoice) As InTwo
  340. From SaleInvoice
  341. Where DateDiff(day,DateAdd(month,1,PayDate_SaleInvoice),@currentDate) &gt; 0 And DateDiff(day,DateAdd(month,2,PayDate_SaleInvoice),@currentDate) &lt;= 0
  342. And SaleInvoice.ID_Assessor Is Not Null And Disable_SaleInvoice=0
  343. And SaleInvoice.No_SaleInvoice between IsNull(@StartNo_SaleInvoice,'') And IsNull(@EndNo_SaleInvoice,(Select Max(No_SaleInvoice) From SaleInvoice))
  344. And IsNull(SaleInvoice.No_Invoice,'') between IsNull(@StartNo_Invoice,'') And IsNull(@EndNo_Invoice,(Select Max(No_Invoice) From SaleInvoice))
  345. Group By ID_Customer
  346. )c On c.ID_Customer=Customer.ID_Customer
  347. Left Join
  348. (
  349. Select SaleInvoice.ID_Customer,Sum(Amount_SaleInvoice-StrikedAmount_SaleInvoice) As InThree
  350. From SaleInvoice
  351. Where DateDiff(day,DateAdd(month,2,PayDate_SaleInvoice),@currentDate) &gt; 0 And DateDiff(day,DateAdd(month,3,PayDate_SaleInvoice),@currentDate) &lt;= 0
  352. And SaleInvoice.ID_Assessor Is Not Null And Disable_SaleInvoice=0
  353. And SaleInvoice.No_SaleInvoice between IsNull(@StartNo_SaleInvoice,'') And IsNull(@EndNo_SaleInvoice,(Select Max(No_SaleInvoice) From SaleInvoice))
  354. And IsNull(SaleInvoice.No_Invoice,'') between IsNull(@StartNo_Invoice,'') And IsNull(@EndNo_Invoice,(Select Max(No_Invoice) From SaleInvoice))
  355. Group By ID_Customer
  356. )d On d.ID_Customer=Customer.ID_Customer
  357. Left Join
  358. (
  359. Select SaleInvoice.ID_Customer,Sum(Amount_SaleInvoice-StrikedAmount_SaleInvoice) As PastThree
  360. From SaleInvoice
  361. Where DateDiff(day,DateAdd(month,3,PayDate_SaleInvoice),@currentDate) &gt; 0
  362. And SaleInvoice.ID_Assessor Is Not Null And Disable_SaleInvoice=0
  363. And SaleInvoice.No_SaleInvoice between IsNull(@StartNo_SaleInvoice,'') And IsNull(@EndNo_SaleInvoice,(Select Max(No_SaleInvoice) From SaleInvoice))
  364. And IsNull(SaleInvoice.No_Invoice,'') between IsNull(@StartNo_Invoice,'') And IsNull(@EndNo_Invoice,(Select Max(No_Invoice) From SaleInvoice))
  365. Group By ID_Customer
  366. )e On e.ID_Customer=Customer.ID_Customer
  367. Where No_Customer between IsNull(@StartNo_Customer,'') And IsNull(@EndNo_Customer,(Select Max(No_Customer) From Customer))
  368. And Customer.ID_Creator=case IsNull(DataLength(@Right),0) When 0 Then Customer.ID_Creator Else @Right End --added for validating right
  369. And ToGetBalance_Customer between IsNull(@StartToGetBalance_Customer,0) And IsNull(@EndToGetBalance_Customer,(Select Max(ToGetBalance_Customer) From Customer))
  370. Order By No_Customer
  371. ">
  372. <Params>
  373. <Param name="@StartNo_Customer" type="Customer.No_Customer" Index="0" />
  374. <Param name="@EndNo_Customer" type="Customer.No_Customer" Index="1" />
  375. <Param name="@StartToGetBalance_Customer" type="Customer.ToGetBalance_Customer" Index="2" />
  376. <Param name="@EndToGetBalance_Customer" type="Customer.ToGetBalance_Customer" Index="3" />
  377. <Param name="@StartNo_SaleInvoice" type="SaleInvoice.No_SaleInvoice" Index="4" />
  378. <Param name="@EndNo_SaleInvoice" type="SaleInvoice.No_SaleInvoice" Index="5" />
  379. <Param name="@StartNo_Invoice" type="SaleInvoice.No_Invoice" Index="6" />
  380. <Param name="@EndNo_Invoice" type="SaleInvoice.No_Invoice" Index="7" />
  381. <Param name="@currentDate" type="SaleInvoice.PayDate_SaleInvoice" Index="8" />
  382. <Param name="@Right" type="SaleBill.ID_Customer" Index="9" />
  383. </Params>
  384. <Tables>
  385. <Table name="FrmReceivablesAnalysis"/>
  386. </Tables>
  387. </SearchReceivablesAnalysis>
  388. </Search>
  389. </Server>
  390. </Form>
  391. </Forms>