A_ProcessMonitorFormMain.cs 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace LYFZ.Software.MainBusiness.CameraControlBook
  11. {
  12. public partial class A_ProcessMonitorFormMain : LYFZ.Software.UI.CameraControlBook.A_ProcessMonitorFormMain
  13. {
  14. LYFZ.BLL.BLL_ErpOrder orbll = new BLL.BLL_ErpOrder();
  15. LYFZ.BLL.BLL_ErpSystemConfigure sgbll = new BLL.BLL_ErpSystemConfigure();
  16. LYFZ.BLL.BLL_ErpOrderProductList opbll = new BLL.BLL_ErpOrderProductList();
  17. LYFZ.BLL.BLL_ErpOrderProductList orpbll = new BLL.BLL_ErpOrderProductList();
  18. public A_ProcessMonitorFormMain()
  19. {
  20. this.Load += A_ProcessMonitorFormMain_Load;
  21. this.butnAddRecord.Click += butnAddRecord_Click;
  22. this.butnAlarmSet.Click += butnAlarmSet_Click;
  23. this.butnColse.Click += butnColse_Click;
  24. this.butnEmployeeSchedule.Click += butnEmployeeSchedule_Click;
  25. this.butnQuery.Click += butnQuery_Click;
  26. this.butnTimeArrange.Click += butnTimeArrange_Click;
  27. this.btnClientServiceAnPai.Click += btnClientServiceAnPai_Click;
  28. this.tabPanel.SelectedIndexChanged += tabPanel_SelectedIndexChanged;
  29. this.txtNoBack.KeyPress += txtNoBack_KeyPress;
  30. this.txtNoDesign.KeyPress += txtNoDesign_KeyPress;
  31. this.txtNoLook.KeyPress += txtNoLook_KeyPress;
  32. this.txtNoPickup.KeyPress += txtNoPickup_KeyPress;
  33. this.txtNoRepair.KeyPress += txtNoRepair_KeyPress;
  34. this.txtNoSelected.KeyPress += txtNoSelected_KeyPress;
  35. this.txtNoSelected2.KeyPress += txtNoSelected2_KeyPress;
  36. this.txtNoSend.KeyPress += txtNoSend_KeyPress;
  37. this.txtNoShot.KeyPress += txtNoShot_KeyPress;
  38. this.txtNoShotIn.KeyPress += txtNoShotIn_KeyPress;
  39. this.txtNoBack.KeyDown += txtNoBack_KeyDown;
  40. this.txtNoDesign.KeyDown += txtNoDesign_KeyDown;
  41. this.txtNoLook.KeyDown += txtNoLook_KeyDown;
  42. this.txtNoPickup.KeyDown += txtNoPickup_KeyDown;
  43. this.txtNoRepair.KeyDown += txtNoRepair_KeyDown;
  44. this.txtNoSelected.KeyDown += txtNoSelected_KeyDown;
  45. this.txtNoSelected2.KeyDown += txtNoSelected2_KeyDown;
  46. this.txtNoSend.KeyDown += txtNoSend_KeyDown;
  47. this.txtNoShot.KeyDown += txtNoShot_KeyDown;
  48. this.txtNoShotIn.KeyDown += txtNoShotIn_KeyDown;
  49. this.txtNoBack.Leave += txtNoBack_Leave;
  50. this.txtNoDesign.Leave += txtNoDesign_Leave;
  51. this.txtNoLook.Leave += txtNoLook_Leave;
  52. this.txtNoPickup.Leave += txtNoPickup_Leave;
  53. this.txtNoRepair.Leave += txtNoRepair_Leave;
  54. this.txtNoSelected.Leave += txtNoSelected_Leave;
  55. this.txtNoSelected2.Leave += txtNoSelected2_Leave;
  56. this.txtNoSend.Leave += txtNoSend_Leave;
  57. this.txtNoShot.Leave += txtNoShot_Leave;
  58. this.txtNoShotIn.Leave += txtNoShotIn_Leave;
  59. this.txtQuery.KeyDown += txtQuery_KeyDown;
  60. this.btnCommunicateDetails.Click += btnCommunicateDetails_Click;
  61. this.btnExport.Click += btnExport_Click;
  62. this.Resize += A_ProcessMonitorFormMain_Resize;
  63. this.dgvData.CellDoubleClick += dgvData_CellDoubleClick;
  64. this.tb_NoShot.Parent = null;
  65. this.tb_NoShotIn.Parent = null;
  66. this.tb_NoRepair.Parent = null;
  67. this.tb_NoSelected.Parent = null;
  68. this.tb_NoSelected2.Parent = null;
  69. this.tb_NoDesign.Parent = null;
  70. this.tb_NoSend2.Parent = null;
  71. this.tb_NoLook.Parent = null;
  72. this.tb_NoSend.Parent = null;
  73. this.tb_NoBack.Parent = null;
  74. this.tb_NoPickup.Parent = null;
  75. this.tb_NoPickup2.Parent = null;
  76. this.tb_SelectNotRefinement.Parent = null;
  77. this.tb_RefinementNotDesign.Parent = null;
  78. //this.btnClientServiceAnPai.Visible = false;
  79. }
  80. /// <summary>
  81. /// 安排任务的任务类型
  82. /// </summary>
  83. public string StrClientServiceType = "";
  84. /// <summary>
  85. /// 员工编号
  86. /// </summary>
  87. string StrUserID = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.LoginUserModel.User_EmployeeID;
  88. #region 窗体事件
  89. /// <summary>
  90. /// 窗体加载事件
  91. /// </summary>
  92. /// <param name="sender"></param>
  93. /// <param name="e"></param>
  94. void A_ProcessMonitorFormMain_Load(object sender, EventArgs e)
  95. {
  96. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindGroupStoreName(this.cmbtreevStoreName, StrGroupKeyCode: "st071", StrKeyCode: "st0703");
  97. if (this.cmbtreevStoreName.Nodes.Count <= 0)
  98. { LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindGroupStoreName(this.cmbtreevStoreName, StrGroupKeyCode: LYFZ.Model.Model_UserRights.GetQuickToolsPet(), StrKeyCode: "st0703"); }
  99. #region 预警设置
  100. DateTime StrTime = SDateTime.Now;
  101. string StrUsrID = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.LoginUserModel.User_EmployeeID;
  102. DataTable tbl = orbll.GetView_Custom("tb_ErpSystemConfigure", StrWhere:
  103. "Sconfig_Code in ('ProcessMonitor_NoShot','ProcessMonitor_NoShotIn','ProcessMonitor_NoRepair','ProcessMonitor_NoSelected','ProcessMonitor_NoSelected2','ProcessMonitor_SelectNotRefinement','ProcessMonitor_RefinementNotDesign', 'ProcessMonitor_NoDesign','ProcessMonitor_NoLook','ProcessMonitor_NoSend','ProcessMonitor_NoBack','ProcessMonitor_NoPickup','ProcessMonitor_NoPickup2','ProcessMonitor_NoSend2')", ShowColumnName: "Sconfig_Code,Sconfig_Value", filedOrder: "ID").Tables[0];
  104. bool IsFindNoShot = false;
  105. bool IsFindNoShotIn = false;
  106. bool IsFindNoRepair = false;
  107. bool IsFindNoSelected = false;
  108. bool IsFindNoSelected2 = false;
  109. bool IsFindNoDesign = false;
  110. bool IsFindNoLook = false;
  111. bool IsFindNoSend = false;
  112. bool IsFindNoSend2 = false;
  113. bool IsFindNoBack = false;
  114. bool IsFindNoPickup = false;
  115. bool IsFindNoPickup2 = false;
  116. bool IsSelectNotRefinement = false;
  117. bool IsRefinementNotDesign = false;
  118. if (tbl.Rows.Count > 0)
  119. {
  120. tbl.PrimaryKey = new DataColumn[] { tbl.Columns["Sconfig_Code"] };
  121. DataRow dtRow_NoShot = tbl.Rows.Find("ProcessMonitor_NoShot");
  122. if (dtRow_NoShot != null)
  123. { IsFindNoShot = true; }
  124. DataRow dtRow_NoShotIn = tbl.Rows.Find("ProcessMonitor_NoShotIn");
  125. if (dtRow_NoShotIn != null)
  126. { IsFindNoShotIn = true; }
  127. DataRow dtRow_NoRepair = tbl.Rows.Find("ProcessMonitor_NoRepair");
  128. if (dtRow_NoRepair != null)
  129. { IsFindNoRepair = true; }
  130. DataRow dtRow_NoSelected = tbl.Rows.Find("ProcessMonitor_NoSelected");
  131. if (dtRow_NoSelected != null)
  132. { IsFindNoSelected = true; }
  133. DataRow dtRow_NoSelected2 = tbl.Rows.Find("ProcessMonitor_NoSelected2");
  134. if (dtRow_NoSelected2 != null)
  135. { IsFindNoSelected2 = true; }
  136. DataRow dtRow_NoDesign = tbl.Rows.Find("ProcessMonitor_NoDesign");
  137. if (dtRow_NoDesign != null)
  138. { IsFindNoDesign = true; }
  139. DataRow dtRow_NoLook = tbl.Rows.Find("ProcessMonitor_NoLook");
  140. if (dtRow_NoLook != null)
  141. { IsFindNoLook = true; }
  142. DataRow dtRow_NoSend = tbl.Rows.Find("ProcessMonitor_NoSend");
  143. if (dtRow_NoSend != null)
  144. { IsFindNoSend = true; }
  145. DataRow dtRow_NoSend2 = tbl.Rows.Find("ProcessMonitor_NoSend2");
  146. if (dtRow_NoSend2 != null)
  147. { IsFindNoSend2 = true; }
  148. DataRow dtRow_NoBack = tbl.Rows.Find("ProcessMonitor_NoBack");
  149. if (dtRow_NoBack != null)
  150. { IsFindNoBack = true; }
  151. DataRow dtRow_NoPickup = tbl.Rows.Find("ProcessMonitor_NoPickup");
  152. if (dtRow_NoPickup != null)
  153. { IsFindNoPickup = true; }
  154. DataRow dtRow_NoPickup2 = tbl.Rows.Find("ProcessMonitor_NoPickup2");
  155. if (dtRow_NoPickup2 != null)
  156. { IsFindNoPickup2 = true; }
  157. DataRow dtRow_SelectNotRefinement = tbl.Rows.Find("ProcessMonitor_SelectNotRefinement");
  158. if (dtRow_SelectNotRefinement != null)
  159. { IsSelectNotRefinement = true; }
  160. DataRow dtRow_RefinementNotDesign = tbl.Rows.Find("ProcessMonitor_RefinementNotDesign");
  161. if (dtRow_RefinementNotDesign != null)
  162. { IsRefinementNotDesign = true; }
  163. }
  164. LYFZ.Model.Model_ErpSystemConfigure model = null;
  165. List<LYFZ.Helper.CommandInfo> clist = new List<Helper.CommandInfo>();
  166. if (!IsFindNoShot)
  167. {
  168. model = new Model.Model_ErpSystemConfigure();
  169. model.Sconfig_Code = "ProcessMonitor_NoShot";
  170. model.Sconfig_Name = "流程把控_已定未拍";
  171. model.Sconfig_Value = "1";
  172. model.Sconfig_IsEnabled = true;
  173. model.Sconfig_Remark = "流程把控_已定几天未拍";
  174. model.Sconfig_Order = 1;
  175. model.Sconfig_CreateDatetime = StrTime;
  176. model.Sconfig_CreateName = StrUsrID;
  177. clist.Add(sgbll.GetAddCommandInfo(model));
  178. }
  179. if (!IsFindNoShotIn)
  180. {
  181. model = new Model.Model_ErpSystemConfigure();
  182. model.Sconfig_Code = "ProcessMonitor_NoShotIn";
  183. model.Sconfig_Name = "流程把控_已拍未拍完";
  184. model.Sconfig_Value = "1";
  185. model.Sconfig_IsEnabled = true;
  186. model.Sconfig_Remark = "流程把控_已拍几天未拍完";
  187. model.Sconfig_Order = 1;
  188. model.Sconfig_CreateDatetime = StrTime;
  189. model.Sconfig_CreateName = StrUsrID;
  190. clist.Add(sgbll.GetAddCommandInfo(model));
  191. }
  192. if (!IsFindNoRepair)
  193. {
  194. model = new Model.Model_ErpSystemConfigure();
  195. model.Sconfig_Code = "ProcessMonitor_NoRepair";
  196. model.Sconfig_Name = "流程把控_已拍未修";
  197. model.Sconfig_Value = "1";
  198. model.Sconfig_IsEnabled = true;
  199. model.Sconfig_Remark = "流程把控_已拍几天未修";
  200. model.Sconfig_Order = 1;
  201. model.Sconfig_CreateDatetime = StrTime;
  202. model.Sconfig_CreateName = StrUsrID;
  203. clist.Add(sgbll.GetAddCommandInfo(model));
  204. }
  205. if (!IsFindNoSelected)
  206. {
  207. model = new Model.Model_ErpSystemConfigure();
  208. model.Sconfig_Code = "ProcessMonitor_NoSelected";
  209. model.Sconfig_Name = "流程把控_已拍未选";
  210. model.Sconfig_Value = "1";
  211. model.Sconfig_IsEnabled = true;
  212. model.Sconfig_Remark = "流程把控_已拍几天未选";
  213. model.Sconfig_Order = 1;
  214. model.Sconfig_CreateDatetime = StrTime;
  215. model.Sconfig_CreateName = StrUsrID;
  216. clist.Add(sgbll.GetAddCommandInfo(model));
  217. }
  218. if (!IsFindNoSelected2)
  219. {
  220. model = new Model.Model_ErpSystemConfigure();
  221. model.Sconfig_Code = "ProcessMonitor_NoSelected2";
  222. model.Sconfig_Name = "流程把控_已修未选";
  223. model.Sconfig_Value = "1";
  224. model.Sconfig_IsEnabled = true;
  225. model.Sconfig_Remark = "流程把控_已修几天未选";
  226. model.Sconfig_Order = 1;
  227. model.Sconfig_CreateDatetime = StrTime;
  228. model.Sconfig_CreateName = StrUsrID;
  229. clist.Add(sgbll.GetAddCommandInfo(model));
  230. }
  231. if (!IsFindNoDesign)
  232. {
  233. model = new Model.Model_ErpSystemConfigure();
  234. model.Sconfig_Code = "ProcessMonitor_NoDesign";
  235. model.Sconfig_Name = "流程把控_已选未设计";
  236. model.Sconfig_Value = "1";
  237. model.Sconfig_IsEnabled = true;
  238. model.Sconfig_Remark = "流程把控_已选几天未设计";
  239. model.Sconfig_Order = 1;
  240. model.Sconfig_CreateDatetime = StrTime;
  241. model.Sconfig_CreateName = StrUsrID;
  242. clist.Add(sgbll.GetAddCommandInfo(model));
  243. }
  244. if (!IsFindNoLook)
  245. {
  246. model = new Model.Model_ErpSystemConfigure();
  247. model.Sconfig_Code = "ProcessMonitor_NoLook";
  248. model.Sconfig_Name = "流程把控_已设计未看版";
  249. model.Sconfig_Value = "1";
  250. model.Sconfig_IsEnabled = true;
  251. model.Sconfig_Remark = "流程把控_已设计几天未看版";
  252. model.Sconfig_Order = 1;
  253. model.Sconfig_CreateDatetime = StrTime;
  254. model.Sconfig_CreateName = StrUsrID;
  255. clist.Add(sgbll.GetAddCommandInfo(model));
  256. }
  257. if (!IsFindNoSend)
  258. {
  259. model = new Model.Model_ErpSystemConfigure();
  260. model.Sconfig_Code = "ProcessMonitor_NoSend";
  261. model.Sconfig_Name = "流程把控_已看版未发片";
  262. model.Sconfig_Value = "1";
  263. model.Sconfig_IsEnabled = true;
  264. model.Sconfig_Remark = "流程把控_已看版几天未发片";
  265. model.Sconfig_Order = 1;
  266. model.Sconfig_CreateDatetime = StrTime;
  267. model.Sconfig_CreateName = StrUsrID;
  268. clist.Add(sgbll.GetAddCommandInfo(model));
  269. }
  270. if (!IsFindNoSend2)
  271. {
  272. model = new Model.Model_ErpSystemConfigure();
  273. model.Sconfig_Code = "ProcessMonitor_NoSend2";
  274. model.Sconfig_Name = "流程把控_已选未发片";
  275. model.Sconfig_Value = "1";
  276. model.Sconfig_IsEnabled = true;
  277. model.Sconfig_Remark = "流程把控_已选几天未发片";
  278. model.Sconfig_Order = 1;
  279. model.Sconfig_CreateDatetime = StrTime;
  280. model.Sconfig_CreateName = StrUsrID;
  281. clist.Add(sgbll.GetAddCommandInfo(model));
  282. }
  283. if (!IsFindNoBack)
  284. {
  285. model = new Model.Model_ErpSystemConfigure();
  286. model.Sconfig_Code = "ProcessMonitor_NoBack";
  287. model.Sconfig_Name = "流程把控_已发片未回件";
  288. model.Sconfig_Value = "1";
  289. model.Sconfig_IsEnabled = true;
  290. model.Sconfig_Remark = "流程把控_已发片几天未回件";
  291. model.Sconfig_Order = 1;
  292. model.Sconfig_CreateDatetime = StrTime;
  293. model.Sconfig_CreateName = StrUsrID;
  294. clist.Add(sgbll.GetAddCommandInfo(model));
  295. }
  296. if (!IsFindNoPickup)
  297. {
  298. model = new Model.Model_ErpSystemConfigure();
  299. model.Sconfig_Code = "ProcessMonitor_NoPickup";
  300. model.Sconfig_Name = "流程把控_部分回件未取件";
  301. model.Sconfig_Value = "1";
  302. model.Sconfig_IsEnabled = true;
  303. model.Sconfig_Remark = "流程把控_部分回件未取件";
  304. model.Sconfig_Order = 1;
  305. model.Sconfig_CreateDatetime = StrTime;
  306. model.Sconfig_CreateName = StrUsrID;
  307. clist.Add(sgbll.GetAddCommandInfo(model));
  308. }
  309. if (!IsFindNoPickup2)
  310. {
  311. model = new Model.Model_ErpSystemConfigure();
  312. model.Sconfig_Code = "ProcessMonitor_NoPickup2";
  313. model.Sconfig_Name = "流程把控_全部回件未取件";
  314. model.Sconfig_Value = "1";
  315. model.Sconfig_IsEnabled = true;
  316. model.Sconfig_Remark = "流程把控_全部回件未取件";
  317. model.Sconfig_Order = 1;
  318. model.Sconfig_CreateDatetime = StrTime;
  319. model.Sconfig_CreateName = StrUsrID;
  320. clist.Add(sgbll.GetAddCommandInfo(model));
  321. }
  322. if (!IsSelectNotRefinement)
  323. {
  324. model = new Model.Model_ErpSystemConfigure();
  325. model.Sconfig_Code = "ProcessMonitor_SelectNotRefinement";
  326. model.Sconfig_Name = "流程把控_已选未精修";
  327. model.Sconfig_Value = "1";
  328. model.Sconfig_IsEnabled = true;
  329. model.Sconfig_Remark = "流程把控_已选未精修";
  330. model.Sconfig_Order = 1;
  331. model.Sconfig_CreateDatetime = StrTime;
  332. model.Sconfig_CreateName = StrUsrID;
  333. clist.Add(sgbll.GetAddCommandInfo(model));
  334. }
  335. if (!IsRefinementNotDesign)
  336. {
  337. model = new Model.Model_ErpSystemConfigure();
  338. model.Sconfig_Code = "ProcessMonitor_RefinementNotDesign";
  339. model.Sconfig_Name = "流程把控_已精修未设计";
  340. model.Sconfig_Value = "1";
  341. model.Sconfig_IsEnabled = true;
  342. model.Sconfig_Remark = "流程把控_已精修未设计";
  343. model.Sconfig_Order = 1;
  344. model.Sconfig_CreateDatetime = StrTime;
  345. model.Sconfig_CreateName = StrUsrID;
  346. clist.Add(sgbll.GetAddCommandInfo(model));
  347. }
  348. if (clist.Count > 0)
  349. { LYFZ.BLL.BaseBllOperate.ExecuteSqlTran(clist); }
  350. #endregion
  351. DataTable dt = sgbll.GetProcessMonitorInterfaceManagement();
  352. TabPage tblPage = null;
  353. if (dt.Rows.Count > 0)
  354. {
  355. this.IsExecute = false;
  356. for (int i = 0; i < dt.Columns.Count; i++)
  357. {
  358. if (Convert.ToBoolean(dt.Rows[0][i]))
  359. {
  360. switch ("tb_" + dt.Columns[i].ColumnName.Trim())
  361. {
  362. case "tb_NoShot":
  363. this.tb_NoShot.Parent = this.tabPanel;
  364. tblPage = this.tb_NoShot;
  365. break;
  366. case "tb_NoShotIn":
  367. this.tb_NoShotIn.Parent = this.tabPanel;
  368. tblPage = this.tb_NoShotIn;
  369. break;
  370. case "tb_NoRepair":
  371. this.tb_NoRepair.Parent = this.tabPanel;
  372. tblPage = this.tb_NoRepair;
  373. break;
  374. case "tb_NoSelected":
  375. this.tb_NoSelected.Parent = this.tabPanel;
  376. tblPage = this.tb_NoSelected;
  377. break;
  378. case "tb_NoSelected2":
  379. this.tb_NoSelected2.Parent = this.tabPanel;
  380. tblPage = this.tb_NoSelected2;
  381. break;
  382. case "tb_NoDesign":
  383. this.tb_NoDesign.Parent = this.tabPanel;
  384. tblPage = this.tb_NoDesign;
  385. break;
  386. case "tb_NoSend2":
  387. this.tb_NoSend2.Parent = this.tabPanel;
  388. tblPage = this.tb_NoSend2;
  389. break;
  390. case "tb_NoLook":
  391. this.tb_NoLook.Parent = this.tabPanel;
  392. tblPage = this.tb_NoLook;
  393. break;
  394. case "tb_NoSend":
  395. this.tb_NoSend.Parent = this.tabPanel;
  396. tblPage = this.tb_NoSend;
  397. break;
  398. case "tb_NoBack":
  399. this.tb_NoBack.Parent = this.tabPanel;
  400. tblPage = this.tb_NoBack;
  401. break;
  402. case "tb_NoPickup":
  403. this.tb_NoPickup.Parent = this.tabPanel;
  404. tblPage = this.tb_NoPickup;
  405. break;
  406. case "tb_NoPickup2":
  407. this.tb_NoPickup2.Parent = this.tabPanel;
  408. tblPage = this.tb_NoPickup2;
  409. break;
  410. case "tb_SelectNotRefinement":
  411. this.tb_SelectNotRefinement.Parent = this.tabPanel;
  412. tblPage = this.tb_SelectNotRefinement;
  413. break;
  414. case "tb_RefinementNotDesign":
  415. this.tb_RefinementNotDesign.Parent = this.tabPanel;
  416. tblPage = this.tb_RefinementNotDesign;
  417. break;
  418. }
  419. }
  420. }
  421. }
  422. else
  423. {
  424. tblPage = this.tb_NoShot;
  425. this.tb_NoShot.Parent = this.tabPanel;
  426. this.tb_NoShotIn.Parent = this.tabPanel;
  427. this.tb_NoRepair.Parent = this.tabPanel;
  428. this.tb_NoSelected.Parent = this.tabPanel;
  429. this.tb_NoSelected2.Parent = this.tabPanel;
  430. this.tb_NoDesign.Parent = this.tabPanel;
  431. this.tb_NoSend2.Parent = this.tabPanel;
  432. this.tb_NoLook.Parent = this.tabPanel;
  433. this.tb_NoSend.Parent = this.tabPanel;
  434. this.tb_NoBack.Parent = this.tabPanel;
  435. this.tb_NoPickup.Parent = this.tabPanel;
  436. this.tb_NoPickup2.Parent = this.tabPanel;
  437. this.tb_SelectNotRefinement.Parent = this.tabPanel;
  438. this.tb_RefinementNotDesign.Parent = this.tabPanel;
  439. }
  440. TabPage strTabName = null;
  441. if (this.StrClientServiceType.Trim().Length > 0)
  442. {
  443. switch (this.StrClientServiceType.Trim())
  444. {
  445. case "已定未拍": strTabName = this.tb_NoShot; break;
  446. case "已拍未拍完": strTabName = this.tb_NoShotIn; break;
  447. case "已拍未选": strTabName = this.tb_NoSelected; break;
  448. case "已修未选": strTabName = this.tb_NoSelected2; break;
  449. case "已设计未看": strTabName = this.tb_NoLook; break;
  450. case "部分回件未取": strTabName = this.tb_NoPickup; break;
  451. case "全部回件未取": strTabName = this.tb_NoPickup2; break;
  452. case "已选未精修": strTabName = this.tb_SelectNotRefinement; break;
  453. case "已精修未设计": strTabName = this.tb_RefinementNotDesign; break;
  454. }
  455. }
  456. if (strTabName != null && this.tabPanel.Contains(strTabName))
  457. {
  458. this.Location = new Point(LYFZ.EnumPublic.FormLocation_X, LYFZ.EnumPublic.FormLocation_Y);
  459. this.Size = new Size(LYFZ.EnumPublic.FormSize_Width, LYFZ.EnumPublic.FormSize_Height);
  460. this.tabPanel.SelectedTab = strTabName;
  461. }
  462. else
  463. { this.tabPanel.SelectedTab = tblPage; }
  464. this.GetProcessMonitorVisible();
  465. this.GetProcessMonitorData();
  466. this.IsExecute = true;
  467. ///控制客服中心安排客服的版本权
  468. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  469. List<Control> hideControls = new List<Control>();
  470. hideControls.Add(this.btnClientServiceAnPai);
  471. List<Control> moveControls = new List<Control>();
  472. moveControls.Add(this.butnAddRecord);
  473. moveControls.Add(this.btnCommunicateDetails);
  474. moveControls.Add(this.butnRecordingsPlay);
  475. moveControls.Add(this.btnExport);
  476. moveControls.Add(this.butnColse);
  477. LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(VersionControl.VersionFunctionEnum.客服中心客服安排, hideControls, null, null);
  478. ///控制客服中心沟通记录的版本权
  479. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  480. hideControls = new List<Control>();
  481. hideControls.Add(this.butnAddRecord);
  482. hideControls.Add(this.btnCommunicateDetails);
  483. moveControls = new List<Control>();
  484. moveControls.Add(this.butnRecordingsPlay);
  485. moveControls.Add(this.btnExport);
  486. moveControls.Add(this.butnColse);
  487. LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(VersionControl.VersionFunctionEnum.客服中心流程把控客服沟通登记, hideControls, null, null);
  488. }
  489. /// <summary>
  490. /// 窗体大小发生变化
  491. /// </summary>
  492. /// <param name="sender"></param>
  493. /// <param name="e"></param>
  494. void A_ProcessMonitorFormMain_Resize(object sender, EventArgs e)
  495. {
  496. switch (this.butnColse.Location.Y)
  497. {
  498. case 3: this.flowLayoutPanel1.Height = 35; break;
  499. case 37: this.flowLayoutPanel1.Height = 70; break;
  500. }
  501. }
  502. /// <summary>
  503. /// 获取预警数据
  504. /// </summary>
  505. void GetProcessMonitorData()
  506. {
  507. System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(delegate()
  508. {
  509. string ExecuteSql = orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoShot'", ShowColumnName: "Sconfig_Value");
  510. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoShotIn'", ShowColumnName: "Sconfig_Value");
  511. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoRepair'", ShowColumnName: "Sconfig_Value");
  512. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoSelected'", ShowColumnName: "Sconfig_Value");
  513. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoSelected2'", ShowColumnName: "Sconfig_Value");
  514. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoDesign'", ShowColumnName: "Sconfig_Value");
  515. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoLook'", ShowColumnName: "Sconfig_Value");
  516. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoSend'", ShowColumnName: "Sconfig_Value");
  517. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoSend2'", ShowColumnName: "Sconfig_Value");
  518. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoBack'", ShowColumnName: "Sconfig_Value");
  519. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoPickup'", ShowColumnName: "Sconfig_Value");
  520. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_NoPickup2'", ShowColumnName: "Sconfig_Value");
  521. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_SelectNotRefinement'", ShowColumnName: "Sconfig_Value");
  522. ExecuteSql += ";" + orbll.GetView_CustomReturnExecuteSql("tb_ErpSystemConfigure", StrWhere: " Sconfig_Code = 'ProcessMonitor_RefinementNotDesign'", ShowColumnName: "Sconfig_Value");
  523. DataSet dtSet = orbll.GetView_Custom(ExecuteSql);
  524. try
  525. {
  526. this.Invoke(new LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.UpdateControl(delegate()
  527. {
  528. this.txtNoShot.Text = dtSet.Tables["ds"].Rows[0]["Sconfig_Value"].ToString().Trim();
  529. this.txtNoShotIn.Text = dtSet.Tables["ds1"].Rows[0]["Sconfig_Value"].ToString().Trim();
  530. this.txtNoRepair.Text = dtSet.Tables["ds2"].Rows[0]["Sconfig_Value"].ToString().Trim();
  531. this.txtNoSelected.Text = dtSet.Tables["ds3"].Rows[0]["Sconfig_Value"].ToString().Trim();
  532. this.txtNoSelected2.Text = dtSet.Tables["ds4"].Rows[0]["Sconfig_Value"].ToString().Trim();
  533. this.txtNoDesign.Text = dtSet.Tables["ds5"].Rows[0]["Sconfig_Value"].ToString().Trim();
  534. this.txtNoLook.Text = dtSet.Tables["ds6"].Rows[0]["Sconfig_Value"].ToString().Trim();
  535. this.txtNoSend.Text = dtSet.Tables["ds7"].Rows[0]["Sconfig_Value"].ToString().Trim();
  536. this.txtNoSend2.Text = dtSet.Tables["ds8"].Rows[0]["Sconfig_Value"].ToString().Trim();
  537. this.txtNoBack.Text = dtSet.Tables["ds9"].Rows[0]["Sconfig_Value"].ToString().Trim();
  538. this.txtNoPickup.Text = dtSet.Tables["ds10"].Rows[0]["Sconfig_Value"].ToString().Trim();
  539. this.txtNoPickup2.Text = dtSet.Tables["ds11"].Rows[0]["Sconfig_Value"].ToString().Trim();
  540. if (dtSet.Tables["ds12"].Rows.Count>0)
  541. {
  542. this.txtSelectNotRefinement.Text = dtSet.Tables["ds12"].Rows[0]["Sconfig_Value"].ToString().Trim();
  543. }
  544. else
  545. {
  546. this.txtSelectNotRefinement.Text = "1";
  547. }
  548. if (dtSet.Tables["ds13"].Rows.Count>0)
  549. {
  550. this.txtRefinementNotDesign.Text = dtSet.Tables["ds13"].Rows[0]["Sconfig_Value"].ToString().Trim();
  551. }
  552. else
  553. {
  554. this.txtRefinementNotDesign.Text = "1";
  555. }
  556. this.PublicFunctionRows();
  557. }));
  558. }
  559. catch { }
  560. }));
  561. t.Start();
  562. }
  563. /// <summary>
  564. /// 预警数据显示隐藏
  565. /// </summary>
  566. void GetProcessMonitorVisible()
  567. {
  568. this.panelNoShot.Visible = false;
  569. this.panelNoShotIn.Visible = false;
  570. this.panelNoRepair.Visible = false;
  571. this.panelNoSelected.Visible = false;
  572. this.panelNoSelected2.Visible = false;
  573. this.panelNoDesign.Visible = false;
  574. this.panelNoLook.Visible = false;
  575. this.panelNoSend.Visible = false;
  576. this.panelNoSend2.Visible = false;
  577. this.panelNoBack.Visible = false;
  578. this.panelNoPickup.Visible = false;
  579. this.panelNoPickup2.Visible = false;
  580. this.panelSelectNotRefinement.Visible = false;
  581. this.panelRefinementNotDesign.Visible = false;
  582. switch (this.tabPanel.SelectedTab.Name.Trim())
  583. {
  584. case "tb_NoShot":
  585. this.panelNoShot.Visible = true;
  586. break;
  587. case "tb_NoShotIn":
  588. this.panelNoShotIn.Visible = true;
  589. break;
  590. case "tb_NoRepair":
  591. this.panelNoRepair.Visible = true;
  592. break;
  593. case "tb_NoSelected":
  594. this.panelNoSelected.Visible = true;
  595. break;
  596. case "tb_NoSelected2":
  597. this.panelNoSelected2.Visible = true;
  598. break;
  599. case "tb_NoDesign":
  600. this.panelNoDesign.Visible = true;
  601. break;
  602. case "tb_NoSend2":
  603. this.panelNoSend2.Visible = true;
  604. break;
  605. case "tb_NoLook":
  606. this.panelNoLook.Visible = true;
  607. break;
  608. case "tb_NoSend":
  609. this.panelNoSend.Visible = true;
  610. break;
  611. case "tb_NoBack":
  612. this.panelNoBack.Visible = true;
  613. break;
  614. case "tb_NoPickup":
  615. this.panelNoPickup.Visible = true;
  616. break;
  617. case "tb_NoPickup2":
  618. this.panelNoPickup2.Visible = true;
  619. break;
  620. case "tb_SelectNotRefinement":
  621. this.panelSelectNotRefinement.Visible = true;
  622. break;
  623. case "tb_RefinementNotDesign":
  624. this.panelRefinementNotDesign.Visible = true;
  625. break;
  626. }
  627. }
  628. #endregion
  629. #region 按钮事件
  630. /// <summary>
  631. /// 添加记录
  632. /// </summary>
  633. /// <param name="sender"></param>
  634. /// <param name="e"></param>
  635. void butnAddRecord_Click(object sender, EventArgs e)
  636. {
  637. if (this.dgvData.Rows.Count > 0)
  638. {
  639. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  640. {
  641. string StrOrdNumber = "";
  642. bool IsNextRemindTime = false;
  643. StrOrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  644. LYFZ.EnumPublic.ClientServiceTaskItem inputType = EnumPublic.ClientServiceTaskItem.已定未拍;
  645. switch (this.tabPanel.SelectedTab.Name.Trim())
  646. {
  647. case "tb_NoShot":
  648. inputType = EnumPublic.ClientServiceTaskItem.已定未拍;
  649. IsNextRemindTime = true;
  650. break;
  651. case "tb_NoShotIn":
  652. inputType = EnumPublic.ClientServiceTaskItem.已拍未拍完;
  653. IsNextRemindTime = true;
  654. break;
  655. case "tb_NoRepair":
  656. inputType = EnumPublic.ClientServiceTaskItem.已拍未修;
  657. break;
  658. case "tb_NoSelected":
  659. inputType = EnumPublic.ClientServiceTaskItem.已拍未选;
  660. IsNextRemindTime = true;
  661. break;
  662. case "tb_NoSelected2":
  663. inputType = EnumPublic.ClientServiceTaskItem.已修未选;
  664. IsNextRemindTime = true;
  665. break;
  666. case "tb_NoDesign":
  667. inputType = EnumPublic.ClientServiceTaskItem.已选未设计;
  668. break;
  669. case "tb_NoSend2":
  670. inputType = EnumPublic.ClientServiceTaskItem.已选未发片;
  671. break;
  672. case "tb_NoLook":
  673. inputType = EnumPublic.ClientServiceTaskItem.已设计未看;
  674. IsNextRemindTime = true;
  675. break;
  676. case "tb_NoSend":
  677. inputType = EnumPublic.ClientServiceTaskItem.已看未发片;
  678. break;
  679. case "tb_NoBack":
  680. inputType = EnumPublic.ClientServiceTaskItem.已发未回件;
  681. break;
  682. case "tb_NoPickup":
  683. inputType = EnumPublic.ClientServiceTaskItem.部分回件未取;
  684. IsNextRemindTime = true;
  685. break;
  686. case "tb_NoPickup2":
  687. inputType = EnumPublic.ClientServiceTaskItem.全部回件未取;
  688. IsNextRemindTime = false;
  689. break;
  690. case "tb_SelectNotRefinement":
  691. inputType = EnumPublic.ClientServiceTaskItem.已选未精修;
  692. break;
  693. case "tb_RefinementNotDesign":
  694. inputType = EnumPublic.ClientServiceTaskItem.已精修未设计;
  695. break;
  696. }
  697. if (StrOrdNumber != "")
  698. {
  699. DataTable tbl = orbll.GetView_Custom("tb_ErpCustomerGroup", StrWhere: "GP_OrderNumber = '" + StrOrdNumber + "'", ShowColumnName: "GP_CustomerGroupID").Tables[0];
  700. if (tbl.Rows.Count > 0)
  701. {
  702. LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.A_AddCommunicateRecords frm = new SuperSmallForm.A_AddCommunicateRecords();
  703. frm.StrClientNumber = tbl.Rows[0]["GP_CustomerGroupID"].ToString().Trim();
  704. frm.EnumClientServiceTaskType = EnumPublic.ClientServiceTaskType.流程通知;
  705. frm.EnumClientServiceTaskItem = inputType;
  706. frm.Areminderdate = IsNextRemindTime;
  707. frm.ShowDialog();
  708. if (frm.IsSaveed)
  709. {
  710. //this.PublicFunctionRows(); ,,,
  711. if (LYFZ.BLL.OtherCommonModel.DateTimeToString(frm.model.TR_NextRemindTime) != "" && this.tabPanel.SelectedTab.Text.Trim() == LYFZ.EnumPublic.ClientServiceTaskItem.部分回件未取.ToString().Trim())
  712. {
  713. for (int i = 0; i <= this.dgvData.CurrentRow.Index; i++)
  714. {
  715. if (this.dgvData.Rows[i].Cells["Ord_Number"].Value.ToString().Trim() == this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim())
  716. { this.dgvData.Rows.RemoveAt(i); }
  717. }
  718. }
  719. else
  720. {
  721. for (int i = this.dgvData.CurrentRow.Index; i >= 0; i--)
  722. {
  723. if (this.dgvData.Rows[i].Cells["订单号"].Value.ToString().Trim() != "")
  724. {
  725. this.dgvData.Rows[i].Cells["客服人员"].Value = LYFZ.BLL.BLL_ErpOrderView.GetUserName(frm.model.TR_TracePersonID);
  726. this.dgvData.Rows[i].Cells["沟通时间"].Value = LYFZ.BLL.OtherCommonModel.DateTimeToString(frm.model.TR_TraceDateTime);
  727. this.dgvData.Rows[i].Cells["沟通状态"].Value = "已沟通";
  728. this.dgvData.Rows[i].Cells["沟通备注"].Value = frm.model.TR_Remark;
  729. break;
  730. }
  731. }
  732. }
  733. }
  734. }
  735. }
  736. }
  737. }
  738. }
  739. /// <summary>
  740. /// 沟通详情
  741. /// </summary>
  742. /// <param name="sender"></param>
  743. /// <param name="e"></param>
  744. void btnCommunicateDetails_Click(object sender, EventArgs e)
  745. {
  746. if (this.dgvData.Rows.Count > 0)
  747. {
  748. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  749. {
  750. string StrOrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  751. if (StrOrdNumber != "")
  752. {
  753. LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.A_CommunicationDetails frm = new SuperSmallForm.A_CommunicationDetails();
  754. frm.StrNumber = StrOrdNumber;
  755. frm.ShowDialog();
  756. if (frm.IsSaveed)
  757. { this.PublicFunctionRows(); }
  758. }
  759. }
  760. }
  761. }
  762. /// <summary>
  763. /// 是否执行
  764. /// </summary>
  765. bool IsExecute = false;
  766. /// <summary>
  767. /// 预警设置
  768. /// </summary>
  769. /// <param name="sender"></param>
  770. /// <param name="e"></param>
  771. void butnAlarmSet_Click(object sender, EventArgs e)
  772. {
  773. LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.A_SetProcessAlertSuperSmallForm frm = new SuperSmallForm.A_SetProcessAlertSuperSmallForm();
  774. frm.ShowDialog();
  775. if (frm.IsSaveed)
  776. {
  777. DataTable dt = sgbll.GetProcessMonitorInterfaceManagement();
  778. if (dt.Rows.Count > 0)
  779. {
  780. this.IsExecute = false;
  781. this.tb_NoShot.Parent = null;
  782. this.tb_NoShotIn.Parent = null;
  783. this.tb_NoRepair.Parent = null;
  784. this.tb_NoSelected.Parent = null;
  785. this.tb_NoSelected2.Parent = null;
  786. this.tb_NoDesign.Parent = null;
  787. this.tb_NoSend2.Parent = null;
  788. this.tb_NoLook.Parent = null;
  789. this.tb_NoSend.Parent = null;
  790. this.tb_NoBack.Parent = null;
  791. this.tb_NoPickup.Parent = null;
  792. this.tb_NoPickup2.Parent = null;
  793. TabPage tblPage = null;
  794. for (int i = 0; i < dt.Columns.Count; i++)
  795. {
  796. if (Convert.ToBoolean(dt.Rows[0][i]))
  797. {
  798. switch ("tb_" + dt.Columns[i].ColumnName.Trim())
  799. {
  800. case "tb_NoShot":
  801. this.tb_NoShot.Parent = this.tabPanel;
  802. tblPage = this.tb_NoShot;
  803. break;
  804. case "tb_NoShotIn":
  805. this.tb_NoShotIn.Parent = this.tabPanel;
  806. tblPage = this.tb_NoShotIn;
  807. break;
  808. case "tb_NoRepair":
  809. this.tb_NoRepair.Parent = this.tabPanel;
  810. tblPage = this.tb_NoRepair;
  811. break;
  812. case "tb_NoSelected":
  813. this.tb_NoSelected.Parent = this.tabPanel;
  814. tblPage = this.tb_NoSelected;
  815. break;
  816. case "tb_NoSelected2":
  817. this.tb_NoSelected2.Parent = this.tabPanel;
  818. tblPage = this.tb_NoSelected2;
  819. break;
  820. case "tb_NoDesign":
  821. this.tb_NoDesign.Parent = this.tabPanel;
  822. tblPage = this.tb_NoDesign;
  823. break;
  824. case "tb_NoSend2":
  825. this.tb_NoSend2.Parent = this.tabPanel;
  826. tblPage = this.tb_NoSend2;
  827. break;
  828. case "tb_NoLook":
  829. this.tb_NoLook.Parent = this.tabPanel;
  830. tblPage = this.tb_NoLook;
  831. break;
  832. case "tb_NoSend":
  833. this.tb_NoSend.Parent = this.tabPanel;
  834. tblPage = this.tb_NoSend;
  835. break;
  836. case "tb_NoBack":
  837. this.tb_NoBack.Parent = this.tabPanel;
  838. tblPage = this.tb_NoBack;
  839. break;
  840. case "tb_NoPickup":
  841. this.tb_NoPickup.Parent = this.tabPanel;
  842. tblPage = this.tb_NoPickup;
  843. break;
  844. case "tb_NoPickup2":
  845. this.tb_NoPickup2.Parent = this.tabPanel;
  846. tblPage = this.tb_NoPickup2;
  847. break;
  848. case "tb_SelectNotRefinement":
  849. this.tb_SelectNotRefinement.Parent = this.tabPanel;
  850. tblPage = this.tb_SelectNotRefinement;
  851. break;
  852. case "tb_RefinementNotDesign":
  853. this.tb_RefinementNotDesign.Parent = this.tabPanel;
  854. tblPage = this.tb_RefinementNotDesign;
  855. break;
  856. }
  857. }
  858. }
  859. this.IsExecute = true;
  860. this.tabPanel.SelectedTab = tblPage;
  861. this.GetProcessMonitorVisible();
  862. }
  863. this.GetProcessMonitorData();
  864. }
  865. }
  866. /// <summary>
  867. /// 关闭
  868. /// </summary>
  869. /// <param name="sender"></param>
  870. /// <param name="e"></param>
  871. void butnColse_Click(object sender, EventArgs e)
  872. { this.Close(); }
  873. /// <summary>
  874. /// 员工档期
  875. /// </summary>
  876. /// <param name="sender"></param>
  877. /// <param name="e"></param>
  878. void butnEmployeeSchedule_Click(object sender, EventArgs e)
  879. {
  880. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.A_EmployeeScheduleSmallForm frm = new SmallForm.A_EmployeeScheduleSmallForm();
  881. frm.ShowDialog();
  882. }
  883. /// <summary>
  884. /// 查询
  885. /// </summary>
  886. /// <param name="sender"></param>
  887. /// <param name="e"></param>
  888. void butnQuery_Click(object sender, EventArgs e)
  889. { this.PublicFunctionRows(); }
  890. /// <summary>
  891. /// 时间安排
  892. /// </summary>
  893. /// <param name="sender"></param>
  894. /// <param name="e"></param>
  895. void butnTimeArrange_Click(object sender, EventArgs e)
  896. {
  897. bool IsSaveed = false;
  898. switch (this.tabPanel.SelectedTab.Name.Trim())
  899. {
  900. case "tb_NoShot":
  901. if (this.dgvData.Rows.Count > 0)
  902. {
  903. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  904. {
  905. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.PhotographedReservationSmallForm frm = new SmallForm.PhotographedReservationSmallForm();
  906. frm.OrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  907. frm.ShowDialog();
  908. IsSaveed = frm.IsSave;
  909. }
  910. }
  911. break;
  912. case "tb_NoShotIn":
  913. if (this.dgvData.Rows.Count > 0)
  914. {
  915. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  916. {
  917. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.PhotographedReservationSmallForm frm = new SmallForm.PhotographedReservationSmallForm();
  918. frm.OrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  919. frm.ShowDialog();
  920. IsSaveed = frm.IsSave;
  921. }
  922. }
  923. break;
  924. case "tb_NoRepair":
  925. if (this.dgvData.Rows.Count > 0)
  926. {
  927. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  928. {
  929. LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm frm = new DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm();
  930. frm.StrViceNumber = "'" + this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim() + "'";
  931. frm.ShowDialog();
  932. IsSaveed = frm.IsSave;
  933. }
  934. }
  935. break;
  936. case "tb_NoSelected":
  937. if (this.dgvData.Rows.Count > 0)
  938. {
  939. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  940. {
  941. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm frm = new SmallForm.FilmsSelectionReservationSmallForm();
  942. frm.OrdViceNumber = this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim();
  943. frm.ShowDialog();
  944. IsSaveed = frm.IsSave;
  945. }
  946. }
  947. break;
  948. case "tb_NoSelected2":
  949. if (this.dgvData.Rows.Count > 0)
  950. {
  951. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  952. {
  953. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.FilmsSelectionReservationSmallForm frm = new SmallForm.FilmsSelectionReservationSmallForm();
  954. frm.OrdViceNumber = this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim();
  955. frm.ShowDialog();
  956. IsSaveed = frm.IsSave;
  957. }
  958. }
  959. break;
  960. case "tb_NoDesign":
  961. if (this.dgvData.Rows.Count > 0)
  962. {
  963. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  964. {
  965. LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm frm = new LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm();
  966. frm.StrViceNumber = "'" + this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim() + "'";
  967. frm.ShowDialog();
  968. IsSaveed = frm.IsSave;
  969. }
  970. }
  971. break;
  972. case "tb_NoSend2":
  973. if (this.dgvData.Rows.Count > 0)
  974. {
  975. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  976. {
  977. LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm frm = new LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm();
  978. frm.StrViceNumber = "'" + this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim() + "'";
  979. frm.ShowDialog();
  980. IsSaveed = frm.IsSave;
  981. }
  982. }
  983. break;
  984. case "tb_NoLook":
  985. if (this.dgvData.Rows.Count > 0)
  986. {
  987. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  988. {
  989. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.LookDesignReservationSmallForm frm = new SmallForm.LookDesignReservationSmallForm();
  990. frm.OrdViceNumber = this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim();
  991. frm.ShowDialog();
  992. IsSaveed = frm.IsSave;
  993. }
  994. }
  995. break;
  996. case "tb_NoSend":
  997. if (this.dgvData.Rows.Count > 0)
  998. {
  999. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  1000. {
  1001. LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm frm = new LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.AnPaiWorkSmallForm();
  1002. frm.StrViceNumber = "'" + this.dgvData.CurrentRow.Cells["Ordv_ViceNumber"].Value.ToString().Trim() + "'";
  1003. frm.ShowDialog();
  1004. IsSaveed = frm.IsSave;
  1005. }
  1006. }
  1007. break;
  1008. case "tb_NoBack":
  1009. break;
  1010. case "tb_NoPickup":
  1011. if (this.dgvData.Rows.Count > 0)
  1012. {
  1013. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  1014. {
  1015. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.TakePiecesReservationSmallForm frm = new SmallForm.TakePiecesReservationSmallForm();
  1016. frm.OrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  1017. frm.ShowDialog();
  1018. IsSaveed = frm.IsSave;
  1019. }
  1020. }
  1021. break;
  1022. case "tb_NoPickup2":
  1023. if (this.dgvData.Rows.Count > 0)
  1024. {
  1025. if (this.dgvData.CurrentCell.ColumnIndex >= 0 && this.dgvData.CurrentRow.Index >= 0)
  1026. {
  1027. LYFZ.Software.MainBusiness.CameraControlBook.SmallForm.TakePiecesReservationSmallForm frm = new SmallForm.TakePiecesReservationSmallForm();
  1028. frm.OrdNumber = this.dgvData.CurrentRow.Cells["Ord_Number"].Value.ToString().Trim();
  1029. frm.ShowDialog();
  1030. IsSaveed = frm.IsSave;
  1031. }
  1032. }
  1033. break;
  1034. }
  1035. if (IsSaveed)
  1036. { this.PublicFunctionRows(); }
  1037. }
  1038. /// <summary>
  1039. /// 选项卡选择事件
  1040. /// </summary>
  1041. /// <param name="sender"></param>
  1042. /// <param name="e"></param>
  1043. void tabPanel_SelectedIndexChanged(object sender, EventArgs e)
  1044. {
  1045. if (this.IsExecute)
  1046. {
  1047. this.butnTimeArrange.Visible = true;
  1048. if (this.tabPanel.SelectedTab != null)
  1049. {
  1050. switch (this.tabPanel.SelectedTab.Name.Trim())
  1051. {
  1052. case "tb_NoShot":
  1053. this.btnClientServiceAnPai.Visible = true;
  1054. break;
  1055. case "tb_NoShotIn":
  1056. this.btnClientServiceAnPai.Visible = true;
  1057. break;
  1058. case "tb_NoRepair":
  1059. this.btnClientServiceAnPai.Visible = false;
  1060. break;
  1061. case "tb_NoSelected":
  1062. this.btnClientServiceAnPai.Visible = true;
  1063. break;
  1064. case "tb_NoSelected2":
  1065. this.btnClientServiceAnPai.Visible = true;
  1066. break;
  1067. case "tb_NoDesign":
  1068. this.btnClientServiceAnPai.Visible = false;
  1069. break;
  1070. case "tb_NoSend2":
  1071. this.btnClientServiceAnPai.Visible = false;
  1072. break;
  1073. case "tb_NoLook":
  1074. this.btnClientServiceAnPai.Visible = true;
  1075. break;
  1076. case "tb_NoSend":
  1077. this.btnClientServiceAnPai.Visible = false;
  1078. break;
  1079. case "tb_NoPickup":
  1080. case "tb_NoPickup2":
  1081. this.btnClientServiceAnPai.Visible = true;
  1082. break;
  1083. case "tb_NoBack":
  1084. this.butnTimeArrange.Visible = false;
  1085. this.btnClientServiceAnPai.Visible = false;
  1086. break;
  1087. case "tb_SelectNotRefinement":
  1088. case "tb_RefinementNotDesign":
  1089. butnTimeArrange.Visible = false;
  1090. break;
  1091. }
  1092. List<Control> hideControl = new List<Control>();
  1093. //LYFZSS.SystemSpecterPossessed.ISystemSpecterPossessed.GetMySystemSpecter = LYFZSS.SystemSpecterType.SST_D;
  1094. hideControl.Add(this.btnClientServiceAnPai);
  1095. LYFZ.Software.MainBusiness.VersionControl.StaticVersion.BindVersionShowHideControl(
  1096. VersionControl.VersionFunctionEnum.客服中心客服安排, hideControl, null, null);
  1097. this.GetProcessMonitorVisible();
  1098. this.PublicFunctionRows();
  1099. }
  1100. }
  1101. }
  1102. /// <summary>
  1103. /// 导出
  1104. /// </summary>
  1105. /// <param name="sender"></param>
  1106. /// <param name="e"></param>
  1107. void btnExport_Click(object sender, EventArgs e)
  1108. {
  1109. if (this.tabPanel.SelectedTab != null)
  1110. {
  1111. this.dgvData.ExportDataTable(this.tabPanel.SelectedTab.Text.Trim());
  1112. }
  1113. }
  1114. /// <summary>
  1115. /// 安排客服
  1116. /// </summary>
  1117. /// <param name="sender"></param>
  1118. /// <param name="e"></param>
  1119. void btnClientServiceAnPai_Click(object sender, EventArgs e)
  1120. {
  1121. if (this.dgvData.SelectedRows.Count > 0)
  1122. {
  1123. LYFZ.Software.MainBusiness.DoorCityProcess.SetSmallForm.ClientServiceTaskAnPaiSmallForm frm = new DoorCityProcess.SetSmallForm.ClientServiceTaskAnPaiSmallForm();
  1124. frm.ShowDialog();
  1125. if (frm.IsSaveed)
  1126. {
  1127. LYFZ.EnumPublic.ClientServiceTaskItem ClientServiceAnPai;
  1128. switch (this.tabPanel.SelectedTab.Name.Trim())
  1129. {
  1130. case "tb_NoShot":
  1131. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.已定未拍;
  1132. break;
  1133. case "tb_NoShotIn":
  1134. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.已拍未拍完;
  1135. break;
  1136. case "tb_NoSelected":
  1137. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.已拍未选;
  1138. break;
  1139. case "tb_NoSelected2":
  1140. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.已修未选;
  1141. break;
  1142. case "tb_NoLook":
  1143. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.已设计未看;
  1144. break;
  1145. case "tb_NoPickup":
  1146. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.部分回件未取;
  1147. break;
  1148. case "tb_NoPickup2":
  1149. ClientServiceAnPai = EnumPublic.ClientServiceTaskItem.全部回件未取;
  1150. break;
  1151. default:
  1152. MessageBoxCustom.Show(this.tabPanel.SelectedTab.Text.Trim() + "不是对客户客服,不支持安排客服!");
  1153. return;
  1154. }
  1155. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.ClientServiceAnPai(this.dgvData, LYFZ.EnumPublic.ClientServiceTaskType.流程通知, frm.model, ClientServiceAnPai);
  1156. }
  1157. }
  1158. }
  1159. #endregion
  1160. #region 文本框事件
  1161. /// <summary>
  1162. /// 未回件输入控制
  1163. /// </summary>
  1164. /// <param name="sender"></param>
  1165. /// <param name="e"></param>
  1166. void txtNoBack_KeyPress(object sender, KeyPressEventArgs e)
  1167. {
  1168. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1169. { e.Handled = true; }
  1170. }
  1171. /// <summary>
  1172. /// 未设计输入控制
  1173. /// </summary>
  1174. /// <param name="sender"></param>
  1175. /// <param name="e"></param>
  1176. void txtNoDesign_KeyPress(object sender, KeyPressEventArgs e)
  1177. {
  1178. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1179. { e.Handled = true; }
  1180. }
  1181. /// <summary>
  1182. /// 未看版输入控制
  1183. /// </summary>
  1184. /// <param name="sender"></param>
  1185. /// <param name="e"></param>
  1186. void txtNoLook_KeyPress(object sender, KeyPressEventArgs e)
  1187. {
  1188. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1189. { e.Handled = true; }
  1190. }
  1191. /// <summary>
  1192. /// 未取件输入控制
  1193. /// </summary>
  1194. /// <param name="sender"></param>
  1195. /// <param name="e"></param>
  1196. void txtNoPickup_KeyPress(object sender, KeyPressEventArgs e)
  1197. {
  1198. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1199. { e.Handled = true; }
  1200. }
  1201. /// <summary>
  1202. /// 未修输入控制
  1203. /// </summary>
  1204. /// <param name="sender"></param>
  1205. /// <param name="e"></param>
  1206. void txtNoRepair_KeyPress(object sender, KeyPressEventArgs e)
  1207. {
  1208. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1209. { e.Handled = true; }
  1210. }
  1211. /// <summary>
  1212. /// 已拍未选片输入控制
  1213. /// </summary>
  1214. /// <param name="sender"></param>
  1215. /// <param name="e"></param>
  1216. void txtNoSelected_KeyPress(object sender, KeyPressEventArgs e)
  1217. {
  1218. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1219. { e.Handled = true; }
  1220. }
  1221. /// <summary>
  1222. /// 已修未选片输入控制
  1223. /// </summary>
  1224. /// <param name="sender"></param>
  1225. /// <param name="e"></param>
  1226. void txtNoSelected2_KeyPress(object sender, KeyPressEventArgs e)
  1227. {
  1228. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1229. { e.Handled = true; }
  1230. }
  1231. /// <summary>
  1232. /// 未发送输入控制
  1233. /// </summary>
  1234. /// <param name="sender"></param>
  1235. /// <param name="e"></param>
  1236. void txtNoSend_KeyPress(object sender, KeyPressEventArgs e)
  1237. {
  1238. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1239. { e.Handled = true; }
  1240. }
  1241. /// <summary>
  1242. /// 未拍输入控制
  1243. /// </summary>
  1244. /// <param name="sender"></param>
  1245. /// <param name="e"></param>
  1246. void txtNoShot_KeyPress(object sender, KeyPressEventArgs e)
  1247. {
  1248. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1249. { e.Handled = true; }
  1250. }
  1251. /// <summary>
  1252. /// 未拍完输入控制
  1253. /// </summary>
  1254. /// <param name="sender"></param>
  1255. /// <param name="e"></param>
  1256. void txtNoShotIn_KeyPress(object sender, KeyPressEventArgs e)
  1257. {
  1258. if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  1259. { e.Handled = true; }
  1260. }
  1261. /// <summary>
  1262. /// 关键字查询
  1263. /// </summary>
  1264. /// <param name="sender"></param>
  1265. /// <param name="e"></param>
  1266. void txtQuery_KeyDown(object sender, KeyEventArgs e)
  1267. {
  1268. if (e.KeyCode == Keys.Enter)
  1269. { this.butnQuery_Click(this, null); }
  1270. }
  1271. /// <summary>
  1272. /// 未拍完回车
  1273. /// </summary>
  1274. /// <param name="sender"></param>
  1275. /// <param name="e"></param>
  1276. void txtNoShotIn_KeyDown(object sender, KeyEventArgs e)
  1277. {
  1278. if (e.KeyCode == Keys.Enter)
  1279. { this.butnQuery_Click(this, null); }
  1280. }
  1281. /// <summary>
  1282. /// 未回件回车
  1283. /// </summary>
  1284. /// <param name="sender"></param>
  1285. /// <param name="e"></param>
  1286. void txtNoBack_KeyDown(object sender, KeyEventArgs e)
  1287. {
  1288. if (e.KeyCode == Keys.Enter)
  1289. { this.butnQuery_Click(this, null); }
  1290. }
  1291. /// <summary>
  1292. /// 未设计回车
  1293. /// </summary>
  1294. /// <param name="sender"></param>
  1295. /// <param name="e"></param>
  1296. void txtNoDesign_KeyDown(object sender, KeyEventArgs e)
  1297. {
  1298. if (e.KeyCode == Keys.Enter)
  1299. { this.butnQuery_Click(this, null); }
  1300. }
  1301. /// <summary>
  1302. /// 未看版回车
  1303. /// </summary>
  1304. /// <param name="sender"></param>
  1305. /// <param name="e"></param>
  1306. void txtNoLook_KeyDown(object sender, KeyEventArgs e)
  1307. {
  1308. if (e.KeyCode == Keys.Enter)
  1309. { this.butnQuery_Click(this, null); }
  1310. }
  1311. /// <summary>
  1312. /// 未取件回车
  1313. /// </summary>
  1314. /// <param name="sender"></param>
  1315. /// <param name="e"></param>
  1316. void txtNoPickup_KeyDown(object sender, KeyEventArgs e)
  1317. {
  1318. if (e.KeyCode == Keys.Enter)
  1319. { this.butnQuery_Click(this, null); }
  1320. }
  1321. /// <summary>
  1322. /// 未修片回车
  1323. /// </summary>
  1324. /// <param name="sender"></param>
  1325. /// <param name="e"></param>
  1326. void txtNoRepair_KeyDown(object sender, KeyEventArgs e)
  1327. {
  1328. if (e.KeyCode == Keys.Enter)
  1329. { this.butnQuery_Click(this, null); }
  1330. }
  1331. /// <summary>
  1332. /// 已拍未选片回车
  1333. /// </summary>
  1334. /// <param name="sender"></param>
  1335. /// <param name="e"></param>
  1336. void txtNoSelected_KeyDown(object sender, KeyEventArgs e)
  1337. {
  1338. if (e.KeyCode == Keys.Enter)
  1339. { this.butnQuery_Click(this, null); }
  1340. }
  1341. /// <summary>
  1342. /// 已修未选片回车
  1343. /// </summary>
  1344. /// <param name="sender"></param>
  1345. /// <param name="e"></param>
  1346. void txtNoSelected2_KeyDown(object sender, KeyEventArgs e)
  1347. {
  1348. if (e.KeyCode == Keys.Enter)
  1349. { this.butnQuery_Click(this, null); }
  1350. }
  1351. /// <summary>
  1352. /// 未发送回车
  1353. /// </summary>
  1354. /// <param name="sender"></param>
  1355. /// <param name="e"></param>
  1356. void txtNoSend_KeyDown(object sender, KeyEventArgs e)
  1357. {
  1358. if (e.KeyCode == Keys.Enter)
  1359. { this.butnQuery_Click(this, null); }
  1360. }
  1361. /// <summary>
  1362. /// 未拍回车
  1363. /// </summary>
  1364. /// <param name="sender"></param>
  1365. /// <param name="e"></param>
  1366. void txtNoShot_KeyDown(object sender, KeyEventArgs e)
  1367. {
  1368. if (e.KeyCode == Keys.Enter)
  1369. { this.butnQuery_Click(this, null); }
  1370. }
  1371. /// <summary>
  1372. /// 文本框离开事件
  1373. /// </summary>
  1374. /// <param name="sender"></param>
  1375. /// <param name="e"></param>
  1376. void txtNoBack_Leave(object sender, EventArgs e)
  1377. {
  1378. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1379. if (txtText.Text.Trim().Length <= 0)
  1380. { txtText.Text = "0"; }
  1381. }
  1382. /// <summary>
  1383. /// 文本框离开事件
  1384. /// </summary>
  1385. /// <param name="sender"></param>
  1386. /// <param name="e"></param>
  1387. void txtNoDesign_Leave(object sender, EventArgs e)
  1388. {
  1389. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1390. if (txtText.Text.Trim().Length <= 0)
  1391. { txtText.Text = "0"; }
  1392. }
  1393. /// <summary>
  1394. /// 文本框离开事件
  1395. /// </summary>
  1396. /// <param name="sender"></param>
  1397. /// <param name="e"></param>
  1398. void txtNoLook_Leave(object sender, EventArgs e)
  1399. {
  1400. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1401. if (txtText.Text.Trim().Length <= 0)
  1402. { txtText.Text = "0"; }
  1403. }
  1404. /// <summary>
  1405. /// 文本框离开事件
  1406. /// </summary>
  1407. /// <param name="sender"></param>
  1408. /// <param name="e"></param>
  1409. void txtNoPickup_Leave(object sender, EventArgs e)
  1410. {
  1411. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1412. if (txtText.Text.Trim().Length <= 0)
  1413. { txtText.Text = "0"; }
  1414. }
  1415. /// <summary>
  1416. /// 文本框离开事件
  1417. /// </summary>
  1418. /// <param name="sender"></param>
  1419. /// <param name="e"></param>
  1420. void txtNoRepair_Leave(object sender, EventArgs e)
  1421. {
  1422. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1423. if (txtText.Text.Trim().Length <= 0)
  1424. { txtText.Text = "0"; }
  1425. }
  1426. /// <summary>
  1427. /// 文本框离开事件
  1428. /// </summary>
  1429. /// <param name="sender"></param>
  1430. /// <param name="e"></param>
  1431. void txtNoSelected_Leave(object sender, EventArgs e)
  1432. {
  1433. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1434. if (txtText.Text.Trim().Length <= 0)
  1435. { txtText.Text = "0"; }
  1436. }
  1437. /// <summary>
  1438. /// 文本框离开事件
  1439. /// </summary>
  1440. /// <param name="sender"></param>
  1441. /// <param name="e"></param>
  1442. void txtNoSelected2_Leave(object sender, EventArgs e)
  1443. {
  1444. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1445. if (txtText.Text.Trim().Length <= 0)
  1446. { txtText.Text = "0"; }
  1447. }
  1448. /// <summary>
  1449. /// 文本框离开事件
  1450. /// </summary>
  1451. /// <param name="sender"></param>
  1452. /// <param name="e"></param>
  1453. void txtNoSend_Leave(object sender, EventArgs e)
  1454. {
  1455. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1456. if (txtText.Text.Trim().Length <= 0)
  1457. { txtText.Text = "0"; }
  1458. }
  1459. /// <summary>
  1460. /// 文本框离开事件
  1461. /// </summary>
  1462. /// <param name="sender"></param>
  1463. /// <param name="e"></param>
  1464. void txtNoShot_Leave(object sender, EventArgs e)
  1465. {
  1466. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1467. if (txtText.Text.Trim().Length <= 0)
  1468. { txtText.Text = "0"; }
  1469. }
  1470. /// <summary>
  1471. /// 文本框离开事件
  1472. /// </summary>
  1473. /// <param name="sender"></param>
  1474. /// <param name="e"></param>
  1475. void txtNoShotIn_Leave(object sender, EventArgs e)
  1476. {
  1477. LYFZ.ComponentLibrary.TextBoxEx txtText = (LYFZ.ComponentLibrary.TextBoxEx)sender;
  1478. if (txtText.Text.Trim().Length <= 0)
  1479. { txtText.Text = "0"; }
  1480. }
  1481. #endregion
  1482. /// <summary>
  1483. /// 列表双击事件
  1484. /// </summary>
  1485. /// <param name="sender"></param>
  1486. /// <param name="e"></param>
  1487. void dgvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
  1488. {
  1489. if (this.dgvData.Columns.Contains("商品备注"))
  1490. if (e.ColumnIndex == this.dgvData.Columns["商品备注"].Index)
  1491. {
  1492. DataGridViewCell cell = this.dgvData.Rows[e.RowIndex].Cells[e.ColumnIndex];
  1493. LYFZ.Software.MainBusiness.CameraControlBook.SuperSmallForm.GetTextRemarkSuperSmallForm frm = new CameraControlBook.SuperSmallForm.GetTextRemarkSuperSmallForm();
  1494. frm.txtMaxLength = 500;
  1495. frm.StrValue = cell.Value.ToString().Trim();
  1496. frm.IsKeyEnterToOk = false;
  1497. frm.ShowDialog();
  1498. if (frm.IsSaveed)
  1499. {
  1500. LYFZ.Model.Model_ErpOrderProductList model = orpbll.DataRowToModel(orbll.GetView_Custom("tb_ErpOrderProductList", StrWhere: "ID = '" + this.dgvData.Rows[e.RowIndex].Cells["PID"].Value + "'", ShowColumnName: "*").Tables[0].Rows[0]);
  1501. if (model.ID > 0)
  1502. {
  1503. model.OPlist_PickupRemark = frm.StrValue.Trim();
  1504. model.OPlist_UpdateDateTime = SDateTime.Now;
  1505. model.OPlist_UpdateName = StrUserID;
  1506. if (orpbll.Update(model))
  1507. { this.dgvData.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = frm.StrValue; }
  1508. }
  1509. }
  1510. }
  1511. }
  1512. /// <summary>
  1513. /// 右键菜单
  1514. /// </summary>
  1515. /// <param name="sender"></param>
  1516. /// <param name="e"></param>
  1517. void dgvData_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
  1518. {
  1519. if (e.Button == MouseButtons.Right)
  1520. {
  1521. if (e.RowIndex == -1)
  1522. {
  1523. this.dgvData.conMenu.Items.Clear();
  1524. ToolStripMenuItem item = new ToolStripMenuItem();
  1525. item.Text = "设置标题";
  1526. item.Tag = "SetColumnShow";
  1527. item.Name = "SetColumnShow";
  1528. this.dgvData.conMenu.Items.Add(item);
  1529. //this.dgvData.conMenu.Show(MousePosition.X, MousePosition.Y);//弹出操作菜单
  1530. this.dgvData.conMenu.ItemClicked -= dgvData_DataGridViewConMenu_ItemClicked;
  1531. this.dgvData.conMenu.ItemClicked += dgvData_DataGridViewConMenu_ItemClicked;
  1532. // this.dgvData.conMenu.Show();
  1533. if (!this.dgvData.conMenu.Visible)
  1534. {
  1535. this.dgvData.conMenu.Show(MousePosition.X, MousePosition.Y);//弹出操作菜单
  1536. }
  1537. }
  1538. else if (e.RowIndex >= 0)
  1539. {
  1540. if (this.tabPanel.SelectedTab.Name.Trim() == "tb_NoSend2")
  1541. {
  1542. bool IsFind = false;
  1543. for (int i = 0; i < this.dgvData.SelectedRows.Count; i++)
  1544. {
  1545. if (!string.IsNullOrEmpty(this.dgvData.SelectedRows[i].Cells["PID"].Value.ToString().Trim()))
  1546. { IsFind = true; }
  1547. }
  1548. if (IsFind)
  1549. {
  1550. this.dgvData.conMenu.Items.Clear();
  1551. ToolStripMenuItem item = null;
  1552. if (this.dgvData.SelectedRows.Count == 1)
  1553. {
  1554. if (!string.IsNullOrEmpty(this.dgvData.CurrentRow.Cells[e.ColumnIndex].Value.ToString().Trim()))
  1555. {
  1556. item = new ToolStripMenuItem();
  1557. item.Text = "复制" + this.dgvData.Columns[e.ColumnIndex].HeaderText;
  1558. item.Tag = this.dgvData.CurrentRow.Index + "|" + e.ColumnIndex;
  1559. item.Name = "复制列";
  1560. this.dgvData.conMenu.Items.Add(item);
  1561. }
  1562. }
  1563. item = new ToolStripMenuItem();
  1564. item.Text = "下次选片显示";
  1565. item.Tag = "IsSendOuntRemind";
  1566. item.Name = "NextShow";
  1567. this.dgvData.conMenu.Items.Add(item);
  1568. this.dgvData.conMenu.ItemClicked -= dgvData_DataGridViewConMenu_ItemClicked;
  1569. this.dgvData.conMenu.ItemClicked += dgvData_DataGridViewConMenu_ItemClicked;
  1570. }
  1571. }
  1572. }
  1573. }
  1574. }
  1575. /// <summary>
  1576. /// 右键菜单选择项事件
  1577. /// </summary>
  1578. /// <param name="sender"></param>
  1579. /// <param name="e"></param>
  1580. void dgvData_DataGridViewConMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  1581. {
  1582. ToolStripItem item = e.ClickedItem;
  1583. switch (item.Name.Trim())
  1584. {
  1585. case "SetColumnShow":
  1586. if (LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.ShowDataGridViewSetColumn(this.dgvData, StrEnabled: "超出天数"))
  1587. { this.PublicFunctionRows(); }
  1588. break;
  1589. case "NextShow":
  1590. List<Helper.CommandInfo> clist = new List<Helper.CommandInfo>();
  1591. for (int i = 0; i < this.dgvData.SelectedRows.Count; i++)
  1592. {
  1593. if (!string.IsNullOrEmpty(this.dgvData.SelectedRows[i].Cells["PID"].Value.ToString().Trim()))
  1594. {
  1595. DataTable tbl = orbll.GetView_Custom("tb_ErpOrderDigital", StrWhere: "Ordv_ViceNumber = '" + this.dgvData.SelectedRows[i].Cells["Ordv_ViceNumber"].Value.ToString().Trim() + "'", ShowColumnName: "Ordv_FilmSelectionTime").Tables[0];
  1596. LYFZ.Model.Model_ErpOrderProductList model = opbll.GetModel(Convert.ToInt32(this.dgvData.SelectedRows[i].Cells["PID"].Value));
  1597. if (tbl.Rows.Count > 0)
  1598. {
  1599. if (!string.IsNullOrEmpty(tbl.Rows[0]["Ordv_FilmSelectionTime"].ToString()))
  1600. {
  1601. model.OPlist_IsSendOuntRemind = 2;
  1602. model.OPlist_FilmSelectionTime = Convert.ToDateTime(tbl.Rows[0]["Ordv_FilmSelectionTime"]);
  1603. }
  1604. }
  1605. clist.Add(opbll.GetUpdateCommandInfo(model));
  1606. }
  1607. }
  1608. if (clist.Count > 0)
  1609. {
  1610. if (LYFZ.BLL.BaseBllOperate.ExecuteSqlTran(clist) > 0)
  1611. {
  1612. this.PublicFunctionRows();
  1613. }
  1614. else
  1615. { MessageBoxCustom.Show("放入下次显示失败"); }
  1616. }
  1617. break;
  1618. }
  1619. }
  1620. /// <summary>
  1621. /// 点击列标头排序
  1622. /// </summary>
  1623. /// <param name="sender"></param>
  1624. /// <param name="e"></param>
  1625. void dgvData_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
  1626. {
  1627. if (e.Button == MouseButtons.Left)
  1628. {
  1629. //if (this.OrderBy_Suffix == 1)
  1630. //{ this.OrderBy_Suffix = 0; }
  1631. //else
  1632. //{ this.OrderBy_Suffix = 1; }
  1633. //this.OrderBy_Column = this.dgvData.Columns[e.ColumnIndex].Name;
  1634. this.PublicFunctionRows();
  1635. }
  1636. }
  1637. /// <summary>
  1638. /// 创建行
  1639. /// </summary>
  1640. private void PublicFunctionRows()
  1641. {
  1642. try
  1643. {
  1644. DataTable newTable = new DataTable();
  1645. Dictionary<string, string> dictColumns = new Dictionary<string, string>();
  1646. string StrQueryCondition = LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetGroupQueryWhere(this.cmbtreevStoreName, "Ord_DividedShop");
  1647. if (!string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1648. { StrQueryCondition += LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.GetQueryTextQueryCondition(this.txtQuery.Text.Trim()); }
  1649. switch (this.tabPanel.SelectedTab.Name.Trim())
  1650. {
  1651. case "tb_NoShot":
  1652. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,超出天数,下单日期,拍摄名称,拍照状态,摄影师,化妆师,引导师,预约时间,宝宝生日,会员余额,客服人员,沟通时间,沟通状态,沟通备注";
  1653. string StrGuidNameA = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0017.ToString().Trim();
  1654. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1655. this.dgvData.dgvGuidName = StrGuidNameA;
  1656. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1657. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,超出天数,下单日期";
  1658. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1659. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameA, this.dgvData.dgvCurrentColumnOriginalSet);
  1660. this.dgvData.dictShowColumName = dictColumns;
  1661. string StrQueryConditionA2 = "";
  1662. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1663. { StrQueryConditionA2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoShot.Text.Trim()) + ""; }
  1664. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotShot(dictColumns, StrQueryCondition, StrQueryConditionA2, StrOrderBy: "Ord_CreateDateTime ASC,Ordv_DigitalNumber");
  1665. break;
  1666. case "tb_NoShotIn":
  1667. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,超出天数,开拍日期,拍摄名称,拍照状态,摄影师,化妆师,引导师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1668. string StrGuidNameB = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0044.ToString().Trim();
  1669. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1670. this.dgvData.dgvGuidName = StrGuidNameB;
  1671. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1672. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,接单人,订单类型,套系名称,套系价格,结婚日期,欠款,超出天数,开拍日期";
  1673. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1674. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameB, this.dgvData.dgvCurrentColumnOriginalSet);
  1675. this.dgvData.dictShowColumName = dictColumns;
  1676. string StrQueryConditionB2 = "";
  1677. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1678. { StrQueryConditionB2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoShotIn.Text.Trim()) + ""; }
  1679. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotShotIn(dictColumns, StrQueryCondition, StrQueryConditionB2, StrOrderBy: "Ords_PhotographMinTime ASC,Ord_Number,Ordv_DigitalNumber");
  1680. break;
  1681. case "tb_NoRepair":
  1682. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,超出天数,拍摄时间,拍摄名称,拍照状态,摄影师,初修状态,初修师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1683. string StrGuidNameC = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0018.ToString().Trim();
  1684. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1685. this.dgvData.dgvGuidName = StrGuidNameC;
  1686. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1687. this.dgvData.StrValueNullColumn = "订单号,订单类型,客户姓名,客户性别,客户电话,接单人,套系名称,套系价格,结婚日期,欠款";
  1688. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1689. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameC, this.dgvData.dgvCurrentColumnOriginalSet);
  1690. this.dgvData.dictShowColumName = dictColumns;
  1691. string StrQueryConditionC2 = "";
  1692. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1693. { StrQueryConditionC2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoRepair.Text.Trim()) + ""; }
  1694. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotRepair(dictColumns, StrQueryCondition, StrQueryConditionC2, StrOrderBy: "Ords_PhotographMaxTime ASC,Ord_Number,Ordv_DigitalNumber");
  1695. break;
  1696. case "tb_NoSelected":
  1697. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,超出天数,拍摄时间,拍摄名称,拍照状态,摄影师,选片状态,选片师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1698. string StrGuidNameD = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0019.ToString().Trim();
  1699. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1700. this.dgvData.dgvGuidName = StrGuidNameD;
  1701. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1702. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1703. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1704. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameD, this.dgvData.dgvCurrentColumnOriginalSet);
  1705. this.dgvData.dictShowColumName = dictColumns;
  1706. string StrQueryConditionD2 = "";
  1707. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1708. { StrQueryConditionD2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoSelected.Text.Trim()) + ""; }
  1709. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotSelected(dictColumns, StrQueryCondition, StrQueryConditionD2, StrOrderBy: "Ords_PhotographMaxTime ASC,Ord_Number,Ordv_DigitalNumber");
  1710. break;
  1711. case "tb_NoSelected2":
  1712. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,初修日期,初修状态,初修师,选片状态,选片师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1713. string StrGuidNameE = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0020.ToString().Trim();
  1714. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1715. this.dgvData.dgvGuidName = StrGuidNameE;
  1716. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1717. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1718. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1719. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameE, this.dgvData.dgvCurrentColumnOriginalSet);
  1720. this.dgvData.dictShowColumName = dictColumns;
  1721. string StrQueryConditionE2 = "";
  1722. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1723. { StrQueryConditionE2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoSelected2.Text.Trim()) + ""; }
  1724. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotSelected2(dictColumns, StrQueryCondition, StrQueryConditionE2, StrOrderBy: "Ordv_EarlyRepairTime ASC,Ord_Number,Ordv_DigitalNumber");
  1725. break;
  1726. case "tb_NoDesign":
  1727. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,选片日期,选片状态,选片师,设计状态,设计师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1728. string StrGuidNameF = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0021.ToString().Trim();
  1729. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1730. this.dgvData.dgvGuidName = StrGuidNameF;
  1731. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1732. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1733. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1734. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameF, this.dgvData.dgvCurrentColumnOriginalSet);
  1735. this.dgvData.dictShowColumName = dictColumns;
  1736. string StrQueryConditionF2 = "";
  1737. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1738. { StrQueryConditionF2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoDesign.Text.Trim()) + ""; }
  1739. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotDesign(dictColumns, StrQueryCondition, StrQueryConditionF2, StrOrderBy: "Ordv_FilmSelectionTime ASC,Ord_Number,Ordv_DigitalNumber");
  1740. break;
  1741. case "tb_NoSend2":
  1742. this.dgvData.dgvCurrentColumnOriginalSet = "PID,Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,选片日期,选片状态,选片师,商品名称,预约时间,发片状态,客服人员,沟通时间,沟通状态,沟通备注,商品备注";
  1743. string StrGuidNameG = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0042.ToString().Trim();
  1744. this.dgvData.dgvFixedHideColumn = "PID,Ord_Number,Ordv_ViceNumber";
  1745. this.dgvData.dgvGuidName = StrGuidNameG;
  1746. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1747. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1748. this.dgvData.StrSecondStageNull = "拍摄名称,选片日期,选片状态,选片师,客服人员,沟通时间,沟通状态,沟通备注,超出天数";
  1749. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1750. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameG, this.dgvData.dgvCurrentColumnOriginalSet);
  1751. this.dgvData.dictShowColumName = dictColumns;
  1752. string StrQueryConditionG2 = "";
  1753. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1754. { StrQueryConditionG2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoSend2.Text.Trim()) + ""; }
  1755. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotSend2(dictColumns, StrQueryCondition, StrQueryConditionG2, StrOrderBy: "Ordv_FilmSelectionTime ASC,Ord_Number,Ordv_DigitalNumber");
  1756. break;
  1757. case "tb_NoLook":
  1758. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,设计日期,设计师,设计状态,看样状态,看样师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1759. string StrGuidNameH = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0022.ToString().Trim();
  1760. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1761. this.dgvData.dgvGuidName = StrGuidNameH;
  1762. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1763. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1764. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1765. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameH, this.dgvData.dgvCurrentColumnOriginalSet);
  1766. this.dgvData.dictShowColumName = dictColumns;
  1767. string StrQueryConditionH2 = "";
  1768. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1769. { StrQueryConditionH2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoLook.Text.Trim()) + ""; }
  1770. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotLook(dictColumns, StrQueryCondition, StrQueryConditionH2, StrOrderBy: "Ordv_DesignerTime ASC,Ord_Number,Ordv_DigitalNumber");
  1771. break;
  1772. case "tb_NoSend":
  1773. this.dgvData.dgvCurrentColumnOriginalSet = "PID,Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,看版日期,看版师,看版状态,商品名称,发片状态,预约时间,客服人员,沟通时间,沟通状态,沟通备注,商品备注";
  1774. string StrGuidNameI = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0023.ToString().Trim();
  1775. this.dgvData.dgvFixedHideColumn = "PID,Ord_Number,Ordv_ViceNumber";
  1776. this.dgvData.dgvGuidName = StrGuidNameI;
  1777. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1778. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1779. this.dgvData.StrSecondStageNull = "拍摄名称,看版日期,看版师,看版状态,客服人员,沟通时间,沟通状态,沟通备注,超出天数";
  1780. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1781. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameI, this.dgvData.dgvCurrentColumnOriginalSet);
  1782. this.dgvData.dictShowColumName = dictColumns;
  1783. string StrQueryConditionI2 = "";
  1784. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1785. { StrQueryConditionI2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoSend.Text.Trim()) + ""; }
  1786. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotSend(dictColumns, StrQueryCondition, StrQueryConditionI2, StrOrderBy: "Ordv_LookDesignTime ASC,Ord_Number,Ordv_DigitalNumber");
  1787. break;
  1788. case "tb_NoBack":
  1789. this.dgvData.dgvCurrentColumnOriginalSet = "PID,Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,商品名称,超出天数,发片日期,发片状态,发片师,完成状态,取件状态,取件日期,客服人员,沟通时间,沟通状态,沟通备注,商品备注";
  1790. string StrGuidNameJ = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0024.ToString().Trim();
  1791. this.dgvData.dgvFixedHideColumn = "PID,Ord_Number,Ordv_ViceNumber";
  1792. this.dgvData.dgvGuidName = StrGuidNameJ;
  1793. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1794. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1795. this.dgvData.StrSecondStageNull = "拍摄名称,客服人员,沟通时间,沟通状态,沟通备注";
  1796. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1797. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameJ, this.dgvData.dgvCurrentColumnOriginalSet);
  1798. this.dgvData.dictShowColumName = dictColumns;
  1799. string StrQueryConditionJ2 = "";
  1800. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1801. { StrQueryConditionJ2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoBack.Text.Trim()) + ""; }
  1802. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotBack(dictColumns, StrQueryCondition, StrQueryConditionJ2, StrOrderBy: "OPlist_SendTime ASC,Ord_Number,Ordv_DigitalNumber");
  1803. break;
  1804. case "tb_NoPickup":
  1805. this.dgvData.dgvCurrentColumnOriginalSet = "PID,Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,商品名称,超出天数,完成日期,完成状态,完成师,预约时间,客服人员,沟通时间,沟通状态,沟通备注,商品备注";
  1806. string StrGuidNameK = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0025.ToString().Trim();
  1807. this.dgvData.dgvFixedHideColumn = "PID,Ord_Number,Ordv_ViceNumber";
  1808. this.dgvData.dgvGuidName = StrGuidNameK;
  1809. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1810. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款";
  1811. this.dgvData.StrSecondStageNull = "拍摄名称,客服人员,沟通时间,沟通状态,沟通备注";
  1812. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1813. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameK, this.dgvData.dgvCurrentColumnOriginalSet);
  1814. this.dgvData.dictShowColumName = dictColumns;
  1815. string StrQueryConditionK2 = "";
  1816. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1817. { StrQueryConditionK2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoPickup.Text.Trim()) + ""; }
  1818. StrQueryCondition += " And Ords_ProductCompletedStatus in (1)";
  1819. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotPickup(dictColumns, StrQueryCondition, StrQueryConditionK2, StrOrderBy: "Ord_Number,Ordv_DigitalNumber,OPlist_CompletedTime ASC");
  1820. break;
  1821. case "tb_NoPickup2":
  1822. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户电话,订单类型,拍摄名称,超出天数,完成日期,完成状态,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1823. string StrGuidNameL = LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0046.ToString().Trim();
  1824. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1825. this.dgvData.dgvGuidName = StrGuidNameL;
  1826. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1827. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户电话,订单类型,超出天数";
  1828. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1829. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameL, this.dgvData.dgvCurrentColumnOriginalSet);
  1830. this.dgvData.dictShowColumName = dictColumns;
  1831. string StrQueryConditionL2 = "";
  1832. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1833. { StrQueryConditionL2 = " And 超出天数 >= " + this.GetIntInput(this.txtNoPickup2.Text.Trim()) + ""; }
  1834. StrQueryCondition += " And Ords_ProductCompletedStatus = '2'";
  1835. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorNotPickup2(dictColumns, StrQueryCondition, StrQueryConditionL2, StrOrderBy: "Ords_ProductCompletedTime,Ord_Number,Ordv_DigitalNumber");
  1836. break;
  1837. case "tb_SelectNotRefinement":
  1838. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,选片日期,选片状态,选片师,精修状态,精修师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1839. string StrGuidNameM = "";//LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0046.ToString().Trim();
  1840. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1841. this.dgvData.dgvGuidName = StrGuidNameM;
  1842. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1843. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户电话,订单类型,超出天数";
  1844. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1845. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameM, this.dgvData.dgvCurrentColumnOriginalSet);
  1846. this.dgvData.dictShowColumName = dictColumns;
  1847. string StrQueryConditionM2 = "";
  1848. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1849. { StrQueryConditionM2 = " And 超出天数 >= " + this.GetIntInput(this.txtSelectNotRefinement.Text.Trim()) + ""; }
  1850. StrQueryCondition += " And Ordv_RefinementStatus = '0'";
  1851. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorSelectNotRefinement(dictColumns, StrQueryCondition, StrQueryConditionM2, StrOrderBy: "Ordv_FilmSelectionTime,Ord_Number,Ordv_DigitalNumber");
  1852. break;
  1853. case "tb_RefinementNotDesign":
  1854. this.dgvData.dgvCurrentColumnOriginalSet = "Ord_Number,Ordv_ViceNumber,订单号,客户姓名,客户性别,客户电话,订单类型,接单人,套系名称,套系价格,结婚日期,欠款,拍摄名称,超出天数,精修日期,精修状态,精修师,设计状态,设计师,预约时间,客服人员,沟通时间,沟通状态,沟通备注";
  1855. string StrGuidNameN = "";//LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0046.ToString().Trim();
  1856. this.dgvData.dgvFixedHideColumn = "Ord_Number,Ordv_ViceNumber";
  1857. this.dgvData.dgvGuidName = StrGuidNameN;
  1858. this.dgvData.dgvUserEmployeeID = this.StrUserID;
  1859. this.dgvData.StrValueNullColumn = "订单号,客户姓名,客户电话,订单类型,超出天数";
  1860. this.dgvData.DataColumns(this.dgvData.dgvCurrentColumnOriginalSet, strHideField: this.dgvData.dgvFixedHideColumn);
  1861. dictColumns = LYFZ.DAL.DAL_GridViewDisplayIndex.GetGridViewShowColumns(this.StrUserID, StrGuidNameN, this.dgvData.dgvCurrentColumnOriginalSet);
  1862. this.dgvData.dictShowColumName = dictColumns;
  1863. string StrQueryConditionN2 = "";
  1864. if (string.IsNullOrEmpty(this.txtQuery.Text.Trim()))
  1865. { StrQueryConditionN2 = " And 超出天数 >= " + this.GetIntInput(this.txtRefinementNotDesign.Text.Trim()) + ""; }
  1866. StrQueryCondition += " And Ordv_DesignerStatus in ('0') ";
  1867. newTable = LYFZ.ComponentLibrary.DataGridOrderView.GetData_ProcessMonitorRefinementNotDesign(dictColumns, StrQueryCondition, StrQueryConditionN2, StrOrderBy: "Ordv_RefinementTime,Ord_Number,Ordv_DigitalNumber");
  1868. break;
  1869. }
  1870. if (newTable.Rows.Count > 0)
  1871. {
  1872. switch (this.tabPanel.SelectedTab.Name.Trim())
  1873. {
  1874. case "tb_NoSend2":
  1875. case "tb_NoSend":
  1876. case "tb_NoBack":
  1877. case "tb_NoPickup":
  1878. //this.dgvData.DataSource(newTable, StrSecondStageNull: this.dgvData.StrSecondStageNull);
  1879. this.dgvData.UseVirtualMode(newTable, this.dgvData.StrSecondStageNull);
  1880. break;
  1881. default:
  1882. //this.dgvData.DataSource(newTable);
  1883. this.dgvData.UseVirtualMode(newTable);
  1884. break;
  1885. }
  1886. }
  1887. else
  1888. { this.dgvData.DataColumns(string.Join(",", dictColumns.Keys.ToArray()), strHideField: this.dgvData.dgvFixedHideColumn); }
  1889. if (this.dgvData.Columns.Contains("客户姓名"))
  1890. { this.dgvData.Columns["客户姓名"].Frozen = true; }
  1891. if (this.dgvData.Columns.Contains("商品备注"))
  1892. { this.dgvData.Columns["商品备注"].Width = 300; }
  1893. this.dgvData.FillLastColumn();
  1894. Hashtable htData = new Hashtable();
  1895. for (int i = 0; i < newTable.Rows.Count; i++)
  1896. { htData[newTable.Rows[i]["Ord_Number"].ToString().Trim()] = newTable.Rows[i]["Ord_Number"].ToString().Trim(); }
  1897. this.dataGridViewStatisticsCount1.LocationX = this.dgvData.RowHeadersWidth;
  1898. this.dataGridViewStatisticsCount1.CurrenQuantity = htData.Count;
  1899. this.dataGridViewStatisticsCount1.TotalQuantity = htData.Count;
  1900. }
  1901. catch(Exception e)
  1902. {
  1903. string err = e.ToString();
  1904. }
  1905. this.dgvData.CellMouseDown += dgvData_CellMouseDown;
  1906. this.dgvData.CellMouseDown += dgvData_CellMouseDown;
  1907. this.dgvData.ColumnHeaderMouseClick -= dgvData_ColumnHeaderMouseClick;
  1908. this.dgvData.ColumnHeaderMouseClick += dgvData_ColumnHeaderMouseClick;
  1909. }
  1910. string GetIntInput(string StrText)
  1911. {
  1912. if (StrText.Trim().Length > 0)
  1913. { return StrText.Trim(); }
  1914. else
  1915. { return "0"; }
  1916. }
  1917. }
  1918. }