FrmTwoSalesOrder.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. using LYFZ.ComponentLibrary;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace LYFZ.Software.MainBusiness.FinancialManagement
  12. {
  13. public partial class FrmTwoSalesOrder : LYFZ.Software.UI.FinancialManagement.FrmTwoSalesOrder
  14. {
  15. LYFZ.BLL.BLL_ErpOrder orbll = new BLL.BLL_ErpOrder();
  16. LYFZ.BLL.BLL_ErpSystemLogs slogbll = new BLL.BLL_ErpSystemLogs();
  17. LYFZ.BLL.BLL_ErpTwoSalesOrder torbll = new BLL.BLL_ErpTwoSalesOrder();
  18. LYFZ.BLL.BLL_ErpCustomerGroup cgpbll = new BLL.BLL_ErpCustomerGroup();
  19. LYFZ.BLL.BLL_ErpOrderProductList oplistbll = new BLL.BLL_ErpOrderProductList();
  20. LYFZ.BLL.BLL_ErpCustomerGroupMembers cgmbll = new BLL.BLL_ErpCustomerGroupMembers();
  21. public string guid = "";
  22. public FrmTwoSalesOrder()
  23. {
  24. this.Shown += FrmTwoSalesOrder_Shown;
  25. this.txtkeyword.KeyDown += txtkeyword_KeyDown;
  26. this.btnSlect.Click += btnSlect_Click;
  27. this.dgvData.CellDoubleClick += dgvData_CellDoubleClick;
  28. this.dgvData.CellMouseClick += dgvData_CellMouseClick;
  29. this.btnConditionsSelect.Click += btnConditionsSelect_Click;
  30. this.btnEntry.Click += btnEntry_Click;
  31. this.btnUpdate.Click += btnUpdate_Click;
  32. this.btnPayment.Click += btnPayment_Click;
  33. this.btnDelete.Click += btnDelete_Click;
  34. this.btnSMS.Click += btnSMS_Click;
  35. this.btnImportPhoto.Click += btnImportPhoto_Click;
  36. this.btnClose.Click += btnClose_Click;
  37. this.chkArrears.Click += chkArrears_Click;
  38. this.Resize += FrmTwoSalesOrder_Resize;
  39. // 导出按钮 ;
  40. this.btnExport.Click += BtnExport_Click;
  41. }
  42. private void BtnExport_Click(object sender, EventArgs e)
  43. {
  44. if (this.dgvData.Rows.Count == 0)
  45. {
  46. MessageBox.Show("没有数据可以导出");
  47. return;
  48. }
  49. this.dgvData.ExportDataTable();
  50. }
  51. public Dictionary<string, string> DictDataArray = new Dictionary<string, string>();
  52. /// <summary>
  53. /// 窗体加载
  54. /// </summary>
  55. /// <param name="sender"></param>
  56. /// <param name="e"></param>
  57. void FrmTwoSalesOrder_Shown(object sender, EventArgs e)
  58. {
  59. this.panelImportPhoto.Visible = LYFZ.BLL.BLL_SystemGlobalSetting.SysTemGlobalSetMoel.OtherConsumerPassportManagement;
  60. // 录入
  61. this.btnEntry.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.TwoSalesOrderCompetence, CustomAttributes.OperatingAuthority.Add);
  62. // 修改
  63. this.btnUpdate.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.TwoSalesOrderCompetence, CustomAttributes.OperatingAuthority.Update);
  64. // 删除
  65. this.btnDelete.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.TwoSalesOrderCompetence, CustomAttributes.OperatingAuthority.Delete);
  66. // 发短信
  67. this.btnSMS.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.TwoSalesOrderCompetence, CustomAttributes.OperatingAuthority.SMSSend);
  68. // 收款
  69. this.btnPayment.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.TwoSalesOrderCompetence, CustomAttributes.OperatingAuthority.OtherConsumerReceivables);
  70. this.PublicFunctionRows();
  71. ///控制财务管理员工奖罚薪资执行的版本权
  72. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  73. List<Control> hideControls = new List<Control>();
  74. hideControls.Add(this.panelImportPhoto);
  75. List<Control> moveControls = new List<Control>();
  76. moveControls.Add(panelClose);
  77. moveControls.Add(panelEx10);
  78. LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(VersionControl.VersionFunctionEnum.财务管理薪资执行, hideControls, null, null);
  79. }
  80. /// <summary>
  81. /// 回车查询
  82. /// </summary>
  83. /// <param name="sender"></param>
  84. /// <param name="e"></param>
  85. void txtkeyword_KeyDown(object sender, KeyEventArgs e)
  86. {
  87. if (e.KeyCode == Keys.Enter)
  88. { this.PublicFunctionRows(); }
  89. }
  90. /// <summary>
  91. /// 查询
  92. /// </summary>
  93. /// <param name="sender"></param>
  94. /// <param name="e"></param>
  95. void btnSlect_Click(object sender, EventArgs e)
  96. {
  97. this.PublicFunctionRows();
  98. }
  99. /// <summary>
  100. /// 列表双击修改
  101. /// </summary>
  102. /// <param name="sender"></param>
  103. /// <param name="e"></param>
  104. void dgvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
  105. {
  106. if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
  107. {
  108. if (dgvData.Rows.Count > 0)
  109. {
  110. if (!this.btnUpdate.Enabled)
  111. { return; }
  112. this.btnUpdate_Click(this, null);
  113. }
  114. }
  115. }
  116. /// <summary>
  117. /// 点事件
  118. /// </summary>
  119. /// <param name="sender"></param>
  120. /// <param name="e"></param>
  121. void dgvData_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
  122. {
  123. if (this.dgvData.Rows.Count > 0 && this.dgvData.CurrentRow != null)
  124. {
  125. if (this.dgvData.CurrentRow.Cells["Tsorder_Category"].Value.ToString().Trim() == "AAAAABZ")
  126. { this.btnImportPhoto.Enabled = true; }
  127. else
  128. { this.btnImportPhoto.Enabled = false; }
  129. }
  130. }
  131. /// <summary>
  132. /// 条件查询
  133. /// </summary>
  134. /// <param name="sender"></param>
  135. /// <param name="e"></param>
  136. void btnConditionsSelect_Click(object sender, EventArgs e)
  137. {
  138. LYFZ.Software.MainBusiness.FinancialManagement.TwoSalesOrder.FrmTwoSalesOrderConditionsSelect frm = new TwoSalesOrder.FrmTwoSalesOrderConditionsSelect();
  139. frm.ShowDialog();
  140. if (frm.IsSaveed)
  141. {
  142. this.DictDataArray = frm.DictDataArray;
  143. this.PublicFunctionRows();
  144. }
  145. }
  146. /// <summary>
  147. /// 录入
  148. /// </summary>
  149. /// <param name="sender"></param>
  150. /// <param name="e"></param>
  151. void btnEntry_Click(object sender, EventArgs e)
  152. {
  153. LYFZ.Software.MainBusiness.FinancialManagement.TwoSalesOrder.FrmTwoSalesOrderEntry frm = new TwoSalesOrder.FrmTwoSalesOrderEntry();
  154. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  155. frm.Location = new Point(LYFZ.EnumPublic.FormLocation_X, LYFZ.EnumPublic.FormLocation_Y);
  156. frm.Size = new Size(LYFZ.EnumPublic.FormSize_Width, LYFZ.EnumPublic.FormSize_Height);
  157. frm.ShowDialog();
  158. if (frm.IsSaveed)
  159. { this.PublicFunctionRows(); }
  160. }
  161. /// <summary>
  162. /// 修改
  163. /// </summary>
  164. /// <param name="sender"></param>
  165. /// <param name="e"></param>
  166. void btnUpdate_Click(object sender, EventArgs e)
  167. {
  168. if (this.dgvData.SelectedRows.Count == 0)
  169. {
  170. MessageBoxCustom.Show("请选择你要修改的数据!");
  171. return;
  172. }
  173. LYFZ.Software.MainBusiness.FinancialManagement.TwoSalesOrder.FrmTwoSalesOrderEntry frm = new TwoSalesOrder.FrmTwoSalesOrderEntry();
  174. frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
  175. frm.Location = new Point(LYFZ.EnumPublic.FormLocation_X, LYFZ.EnumPublic.FormLocation_Y);
  176. frm.Size = new Size(LYFZ.EnumPublic.FormSize_Width, LYFZ.EnumPublic.FormSize_Height);
  177. frm.StrOrderNumber = this.dgvData.CurrentRow.Cells["订单号"].Value.ToString().Trim();
  178. frm.ShowDialog();
  179. if (frm.IsSaveed)
  180. { this.PublicFunctionRows(); }
  181. }
  182. /// <summary>
  183. /// 收款
  184. /// </summary>
  185. /// <param name="sender"></param>
  186. /// <param name="e"></param>
  187. void btnPayment_Click(object sender, EventArgs e)
  188. {
  189. if (this.dgvData.SelectedRows.Count == 0)
  190. {
  191. MessageBoxCustom.Show("请选择你要收款的数据!");
  192. return;
  193. }
  194. LYFZ.Software.MainBusiness.FinancialManagement.TwoSalesOrder.FrmTwoSalesOrderPayment frm = new TwoSalesOrder.FrmTwoSalesOrderPayment();
  195. frm.StrCope = Convert.ToDecimal(this.dgvData.CurrentRow.Cells["应付金额"].Value);
  196. frm.StrPaid = Convert.ToDecimal(this.dgvData.CurrentRow.Cells["已付金额"].Value);
  197. frm.StrArrears = Convert.ToDecimal(this.dgvData.CurrentRow.Cells["欠款"].Value);
  198. frm.StrOrdNumber = this.dgvData.CurrentRow.Cells["订单号"].Value.ToString().Trim();
  199. frm.ShowDialog();
  200. if (frm.IsSaveed)
  201. { PublicFunctionRows(); }
  202. }
  203. /// <summary>
  204. /// 删除
  205. /// </summary>
  206. /// <param name="sender"></param>
  207. /// <param name="e"></param>
  208. void btnDelete_Click(object sender, EventArgs e)
  209. {
  210. if (this.dgvData.SelectedRows.Count == 0)
  211. {
  212. MessageBoxCustom.Show("请选中你要删除的数据!");
  213. return;
  214. }
  215. if (MessageBoxCustom.Show("你确定要删除吗?", "删除提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
  216. {
  217. string strOtherConsumeNumber = this.dgvData.CurrentRow.Cells["订单号"].Value.ToString().Trim();
  218. List<Helper.CommandInfo> clist = new List<Helper.CommandInfo>();
  219. LYFZ.ComponentLibrary.FrmLoadHandling.LoadDoWorkMethod(delegate(object obj, BackgroundWorker backgroundWorker)
  220. {
  221. DataTable tbl = orbll.GetView_Custom("tb_ErpPayment", StrWhere: "Pay_OrdNumber = '" + strOtherConsumeNumber + "'", ShowColumnName: "ID").Tables[0];
  222. if (tbl.Rows.Count > 0)
  223. { MessageBoxCustom.Show("订单已收款,请先删除收款!"); return; }
  224. DataTable dt = orbll.GetView_Custom("tb_ErpTwoSalesOrder", StrWhere: "Tsorder_Number = '" + strOtherConsumeNumber + "'", ShowColumnName: "ID,Tsorder_PhotoNames").Tables[0];
  225. if (dt.Rows.Count > 0)
  226. {
  227. if (!string.IsNullOrEmpty(dt.Rows[0]["Tsorder_PhotoNames"].ToString().Trim()))
  228. {
  229. string[] StrArrayList = dt.Rows[0]["Tsorder_PhotoNames"].ToString().Trim().Split('|');
  230. for (int i = 0; i < StrArrayList.Length; i++)
  231. {
  232. if (!string.IsNullOrEmpty(StrArrayList[i].Trim()))
  233. {
  234. backgroundWorker.ReportProgress(0, "正在删除证件照...");
  235. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.DeleteOtherConsumePhoto(strOtherConsumeNumber + "_" + System.IO.Path.GetFileNameWithoutExtension(StrArrayList[i].Trim()) + ".jpg", IsRecursion: true, DeleteDressType: 0);
  236. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.DeleteOtherConsumePhoto(strOtherConsumeNumber + "_" + StrArrayList[i].Trim(), IsRecursion: true, DeleteDressType: 1);
  237. }
  238. }
  239. }
  240. clist.Add(torbll.GetDeleteCommandInfo("ID", "=", dt.Rows[0]["ID"].ToString().Trim()));
  241. DataTable dtc = orbll.GetView_Custom("tb_ErpOrderProductList", StrWhere: "OPlist_OrderNumber = '" + strOtherConsumeNumber + "' And OPlist_ViceNumber = '" + strOtherConsumeNumber + "'", ShowColumnName: "ID").Tables[0];
  242. for (int i = 0; i < dtc.Rows.Count; i++)
  243. {
  244. clist.Add(oplistbll.GetDeleteCommandInfo("ID", "=", dtc.Rows[0]["ID"].ToString().Trim()));
  245. }
  246. DataTable dta = orbll.GetView_Custom("tb_ErpCustomerGroup", StrWhere: "GP_OrderNumber = '" + strOtherConsumeNumber + "'", ShowColumnName: "ID,GP_CustomerGroupID").Tables[0];
  247. if (dta.Rows.Count > 0)
  248. {
  249. clist.Add(cgpbll.GetDeleteCommandInfo("ID", "=", dta.Rows[0]["ID"].ToString().Trim()));
  250. DataTable dtb = orbll.GetView_Custom("tb_ErpCustomerGroupMembers", StrWhere: "GM_CustomerGroupID = '" + dta.Rows[0]["GP_CustomerGroupID"].ToString().Trim() + "'", ShowColumnName: "ID").Tables[0];
  251. for (int i = 0; i < dtb.Rows.Count; i++)
  252. {
  253. clist.Add(cgmbll.GetDeleteCommandInfo("ID", "=", dtb.Rows[0]["ID"].ToString().Trim()));
  254. }
  255. }
  256. string logsContent = "删除其他消费订单号为:" + strOtherConsumeNumber;
  257. clist.Add(slogbll.GetAddCommandInfo(LYFZ.BLL.BLL_ErpSystemLogs.GetWriteLogModel(LYFZ.EnumPublic.SystemLogsType.删除其他消费, logsContent, LYFZ.BLL.BLL_ErpUser.UsersModel.User_EmployeeID, LYFZ.BLL.BLL_ErpUser.UsersModel.User_Name, StrInfoID: LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetLocalCompanyInfoID())));
  258. }
  259. });
  260. if (clist.Count > 0)
  261. {
  262. int ExecuteCount = LYFZ.BLL.BaseBllOperate.ExecuteSqlTran(clist);
  263. if (ExecuteCount > 0)
  264. {
  265. MessageBoxCustom.Show("删除成功!");
  266. this.dgvData.Rows.Remove(this.dgvData.SelectedRows[0]);
  267. }
  268. else
  269. { MessageBoxCustom.Show("删除失败!"); }
  270. }
  271. }
  272. }
  273. /// <summary>
  274. /// 发短信
  275. /// </summary>
  276. /// <param name="sender"></param>
  277. /// <param name="e"></param>
  278. void btnSMS_Click(object sender, EventArgs e)
  279. {
  280. try
  281. {
  282. if (this.dgvData.SelectedRows.Count == 0)
  283. {
  284. MessageBoxCustom.Show("选择你要发送短信的客户!");
  285. return;
  286. }
  287. LYFZ.Software.MainBusiness.SMSManagement.SmsSend.FrmSendSms frm = new SMSManagement.SmsSend.FrmSendSms();
  288. string Tsorder_Telephone = this.dgvData.CurrentRow.Cells["客户电话"].Value.ToString();
  289. if (!string.IsNullOrEmpty(Tsorder_Telephone))
  290. { frm.Phone = Tsorder_Telephone; }
  291. frm.ShowDialog();
  292. }
  293. catch (Exception ex)
  294. { MessageBoxCustom.Show(ex.Message); }
  295. }
  296. /// <summary>
  297. /// 导入证件照
  298. /// </summary>
  299. /// <param name="sender"></param>
  300. /// <param name="e"></param>
  301. void btnImportPhoto_Click(object sender, EventArgs e)
  302. {
  303. if (this.dgvData.Rows.Count > 0 && this.dgvData.SelectedRows.Count > 0)
  304. {
  305. LYFZ.Software.MainBusiness.FinancialManagement.SetSmallForm.OtherConsumeImportPhotoSetSmallForm frm = new SetSmallForm.OtherConsumeImportPhotoSetSmallForm();
  306. frm.StrOtherOrderNumber = this.dgvData.SelectedRows[0].Cells["订单号"].Value.ToString().Trim();
  307. frm.ShowDialog();
  308. if (frm.IsSaveed)
  309. { this.PublicFunctionRows(); }
  310. }
  311. }
  312. /// <summary>
  313. /// 关闭
  314. /// </summary>
  315. /// <param name="sender"></param>
  316. /// <param name="e"></param>
  317. void btnClose_Click(object sender, EventArgs e)
  318. {
  319. this.Close();
  320. }
  321. /// <summary>
  322. /// 欠款
  323. /// </summary>
  324. /// <param name="sender"></param>
  325. /// <param name="e"></param>
  326. void chkArrears_Click(object sender, EventArgs e)
  327. {
  328. this.PublicFunctionRows();
  329. }
  330. /// <summary>
  331. /// 关闭窗体事件
  332. /// </summary>
  333. /// <param name="sender"></param>
  334. /// <param name="e"></param>
  335. void FrmTwoSalesOrder_Resize(object sender, EventArgs e)
  336. {
  337. switch (this.panelClose.Location.Y)
  338. {
  339. case 4: this.flowLayoutPanel1.Height = 38; break;
  340. case 36: this.flowLayoutPanel1.Height = 70; break;
  341. }
  342. }
  343. /// <summary>
  344. /// 绑定数据
  345. /// </summary>
  346. public void PublicFunctionRows()
  347. {
  348. string StrWhere = this.GetStrWhere();
  349. int intTopCount = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetPageSize();
  350. Hashtable htData = LYFZ.ComponentLibrary.DataGridOrderView.GetData_OrderOtherConsume(this.dgvData, StrWhere, intTopCount);
  351. this.dataGridViewStatisticsCount1.LocationX = this.dgvData.RowHeadersWidth;
  352. this.dataGridViewStatisticsCount1.CurrenQuantity = Convert.ToInt32(htData["CurrentCount"].ToString());
  353. this.dataGridViewStatisticsCount1.TotalQuantity = Convert.ToInt32(htData["TotalCount"].ToString());
  354. }
  355. /// <summary>
  356. /// 获取查询条件
  357. /// </summary>
  358. /// <returns></returns>
  359. string GetStrWhere()
  360. {
  361. string StrWhere = " Where 1 = 1";
  362. string StrKeyWord = txtkeyword.Text.Trim();
  363. #region 查询条件
  364. if (!string.IsNullOrEmpty(StrKeyWord))
  365. {
  366. Hashtable htData = new Hashtable();
  367. htData["Tsorder_Number"] = "";
  368. htData["Cus_Name"] = "";
  369. htData["Cus_NamePinyin"] = "";
  370. htData["Cus_Telephone"] = "";
  371. if (LYFZ.Command.Command_Validate.IsNumber(StrKeyWord))
  372. {
  373. if (StrKeyWord.Trim().Length == 11)
  374. { StrWhere += " And Cus_Telephone = '" + StrKeyWord + "'"; }
  375. else
  376. { StrWhere += " And Cus_Telephone like '" + StrKeyWord + "%'"; }
  377. }
  378. else if (LYFZ.Command.Command_Validate.IsEnglish(StrKeyWord))
  379. { StrWhere += " And Cus_NamePinyin like '" + StrKeyWord + "%'"; }
  380. else if (LYFZ.Command.Command_Validate.IsChinese(StrKeyWord))
  381. { StrWhere += " And Cus_Name like '" + StrKeyWord + "%'"; }
  382. else
  383. { StrWhere += " And Tsorder_Number like '" + StrKeyWord + "%'"; }
  384. }
  385. #endregion
  386. if (this.DictDataArray.Count > 0)
  387. {
  388. if (DictDataArray.ContainsKey("strTimeStart") && DictDataArray["strTimeStart"].ToString().Trim().Length > 0 && DictDataArray.ContainsKey("strTimeEnd") && DictDataArray["strTimeEnd"].ToString().Trim().Length > 0)
  389. { StrWhere += LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetDateTime("Tsorder_CreateDatetime", DictDataArray["strTimeStart"].ToString().Trim(), DictDataArray["strTimeEnd"].ToString().Trim()); }
  390. if (DictDataArray.ContainsKey("strItemName") && DictDataArray["strItemName"].ToString().Trim().Length > 0)
  391. { StrWhere += " And Tsorder_Name = '" + DictDataArray["strItemName"].ToString().Trim() + "'"; }
  392. if (DictDataArray.ContainsKey("strOpenPerson") && DictDataArray["strOpenPerson"].ToString().Trim().Length > 0)
  393. { StrWhere += " And Tsorder_OpenSingle = '" + DictDataArray["strOpenPerson"].ToString().Trim() + "'"; }
  394. if (DictDataArray.ContainsKey("strConsumeType") && DictDataArray["strConsumeType"].ToString().Trim().Length > 0)
  395. { StrWhere += " And Tsorder_Category = '" + DictDataArray["strConsumeType"].ToString().Trim() + "'"; }
  396. if (DictDataArray.ContainsKey("strPickup") && DictDataArray["strPickup"].ToString().Trim().Length > 0)
  397. { StrWhere += " And Tsorder_PhotoPickup = '" + DictDataArray["strPickup"].ToString().Trim() + "'"; }
  398. if (DictDataArray.ContainsKey("strImport") && DictDataArray["strImport"].ToString().Trim().Length > 0)
  399. {
  400. if (DictDataArray["strImport"].ToString().Trim() == "0")
  401. { StrWhere += " And Tsorder_PhotoNames = ''"; }
  402. else if (DictDataArray["strImport"].ToString().Trim() == "1")
  403. { StrWhere += " And Tsorder_PhotoNames != ''"; }
  404. }
  405. }
  406. if (this.chkArrears.Checked)
  407. { StrWhere += " And (套系金额 - isnull(收款金额,0)) > 0"; }
  408. this.DictDataArray.Clear();
  409. return StrWhere;
  410. }
  411. }
  412. }