Query_ExeProgress.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. using DevComponents.DotNetBar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Drawing.Drawing2D;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. using UAS_MES_NEW.DataOperate;
  12. using UAS_MES_NEW.Entity;
  13. using UAS_MES_NEW.PublicMethod;
  14. namespace UAS_MES_NEW.Query
  15. {
  16. public partial class Query_ExeProgress : Form
  17. {
  18. DataHelper dh;
  19. LogStringBuilder sql = new LogStringBuilder();
  20. //经过的步骤
  21. string PastStep = "";
  22. //经过的步骤
  23. string nextStepCode = "";
  24. //序列号对应抽检批
  25. string checkno = "";
  26. //拆分后的经过的步骤
  27. Dictionary<int, string> Step;
  28. Dictionary<int, string> StepName;
  29. List<Brush> PaintColor = new List<Brush>();
  30. //屏幕高度
  31. int ScreenWidth;
  32. //屏幕宽度
  33. int ScreenHeight;
  34. DataTable dt;
  35. DataTable ms_id;//记录ms_id
  36. DataTable ListA;//记录数据的当前序列号和之前序列号
  37. AutoSizeFormClass asc = new AutoSizeFormClass();
  38. public Query_ExeProgress()
  39. {
  40. InitializeComponent();
  41. }
  42. private void Query_ExeProgress_Load(object sender, EventArgs e)
  43. {
  44. dh = SystemInf.dh;
  45. ScreenWidth = this.Width;
  46. ScreenHeight = this.Height;
  47. asc.controllInitializeSize(this);
  48. sn_code.Focus();
  49. }
  50. private void Query_ExeProgress_SizeChanged(object sender, EventArgs e)
  51. {
  52. asc.controlAutoSize(this);
  53. }
  54. private void sn_code_KeyDown(object sender, KeyEventArgs e)
  55. {
  56. if (e.KeyCode == Keys.Enter)
  57. {
  58. dt = (DataTable)dh.ExecuteSql("select cm_sncode from craftmaterial where cm_barcode='" + sn_code.Text + "' and nvl(cm_status,0)=0", "select");
  59. string sncode = sn_code.Text;
  60. if (dt.Rows.Count > 0)
  61. {
  62. sn_code.Text = dt.Rows[0]["cm_sncode"].ToString();
  63. }
  64. ms_id = (DataTable)dh.ExecuteSql("select beforesn,sn from makesnrelation where beforesn='" + sn_code.Text + "' or sn='" + sn_code.Text + "'", "select");
  65. if (ms_id.Rows.Count > 0)
  66. {
  67. //说明有过转号
  68. ms_id = (DataTable)dh.ExecuteSql("select ms_id,ms_makecode,ms_firstsn,ms_checkno from makeserial where ms_sncode='" + ms_id.Rows[0]["beforesn"].ToString() + "' or ms_sncode='" + ms_id.Rows[0]["sn"].ToString() + "' order by ms_id", "select");
  69. }
  70. else
  71. {
  72. //没有过转号
  73. ms_id = (DataTable)dh.ExecuteSql("select ms_id,ms_makecode,ms_firstsn,ms_checkno from makeserial where ms_sncode='" + sn_code.Text + "' order by ms_id", "select");
  74. }
  75. if (ms_id.Rows.Count == 0)
  76. {
  77. //无值则提示
  78. MessageBox.Show("序列号" + sn_code.Text + "不存在");
  79. return;
  80. }
  81. StringBuilder ms_ids = new StringBuilder();//存所有的ms_id
  82. //设置界面工单号
  83. ma_code.Text = ms_id.Rows[ms_id.Rows.Count - 1]["ms_makecode"].ToString();
  84. ms_checkno.Text = ms_id.Rows[ms_id.Rows.Count - 1]["ms_checkno"].ToString();
  85. int idCount = ms_id.Rows.Count;
  86. for (int i = 0; i < idCount; i++)
  87. {
  88. ms_ids.Append("'" + ms_id.Rows[i]["ms_id"].ToString() + "',");
  89. }
  90. ListA = (DataTable)dh.ExecuteSql("select ms_beforesn,ms_sncode,ms_firstsn,ms_makecode from makeserial where ms_id in (" + ms_ids.ToString().Substring(0, ms_ids.ToString().Length - 1) + ")", "select");
  91. dt = (DataTable)dh.ExecuteSql("select ms_status,ms_nextstepcode,ms_paststep,ms_stepcode,ms_checkno,NVL(ms_ifrework, 0) ms_ifrework,NVL(ms_reworkstatus, 0) ms_reworkstatus from makeserial where ms_id in (" + ms_ids.ToString().Substring(0, ms_ids.ToString().Length - 1) + ") order by ms_id", "select");
  92. if (dt.Rows.Count > 0)
  93. {
  94. if (Step != null && Step.Count > 0)
  95. {
  96. Step.Clear();
  97. SerialPanel.Controls.Clear();
  98. PaintColor.Clear();
  99. }
  100. string ifRework = dt.Rows[idCount - 1]["ms_ifrework"].ToString();
  101. //执行过的步骤
  102. PastStep = dt.Rows[idCount - 1]["ms_paststep"].ToString();
  103. //下一步骤
  104. nextStepCode = dt.Rows[idCount - 1]["ms_nextstepcode"].ToString();
  105. //序列号所属抽检批
  106. checkno = dt.Rows[idCount - 1]["ms_checkno"].ToString();
  107. //如果为不良的时候
  108. string BadStep = "";
  109. string RejectStep = "";
  110. string currentStep = "";
  111. //先判断是否是返工的
  112. if (ifRework != "0")
  113. {
  114. //是返工的
  115. if (dt.Rows[idCount - 1]["ms_reworkstatus"].ToString() == "3")
  116. {
  117. BadStep = dt.Rows[idCount - 1]["ms_stepcode"].ToString();
  118. }
  119. else if (dt.Rows[idCount - 1]["ms_reworkstatus"].ToString() == "4")
  120. {
  121. RejectStep = dt.Rows[idCount - 1]["ms_stepcode"].ToString();
  122. }
  123. }
  124. else
  125. {
  126. //不是返工的
  127. if (dt.Rows[idCount - 1]["ms_status"].ToString() == "3")
  128. {
  129. BadStep = dt.Rows[idCount - 1]["ms_stepcode"].ToString();
  130. }
  131. else if (dt.Rows[idCount - 1]["ms_status"].ToString() == "4")
  132. {
  133. RejectStep = dt.Rows[idCount - 1]["ms_stepcode"].ToString();
  134. }
  135. }
  136. currentStep = dt.Rows[idCount - 1]["ms_stepcode"].ToString();
  137. bool flag = false;//记录返工单开始就是不良的情况
  138. //如果只有一个单
  139. if (idCount == 1)
  140. {
  141. //添加开始节点绿色,除了返工单
  142. if (BadStep == "" && ((dt.Rows[idCount - 1]["ms_status"].ToString() == "3" && ifRework == "0") || (dt.Rows[idCount - 1]["ms_reworkstatus"].ToString() == "3" && ifRework == "-1")))
  143. {
  144. PaintColor.Add(Brushes.Red);
  145. }
  146. else
  147. {
  148. PaintColor.Add(Brushes.Green);
  149. }
  150. }
  151. else//有至少两个工单,之前的工单肯定是已经完工的
  152. {
  153. PaintColor.Add(Brushes.Green);
  154. if (BadStep == "" && ((dt.Rows[idCount - 1]["ms_status"].ToString() == "3" && ifRework == "0") || (dt.Rows[idCount - 1]["ms_reworkstatus"].ToString() == "3" && ifRework == "-1")))
  155. {
  156. //单独记录返工前oqc判不良
  157. flag = true;
  158. }
  159. }
  160. //查询执行过的步骤
  161. sql.Clear();
  162. sql.Append("select CD_DETNO,CD_STEPCODE,cd_ifoqc,ms_makecode,ms_id,cd_stepname from craft left join craftdetail on cd_crid = cr_id left join makeserial ");
  163. sql.Append("on ms_craftcode=cr_code and ms_prodcode=cr_prodcode where ms_id in (" + ms_ids.ToString().Substring(0, ms_ids.ToString().Length - 1) + ") order by ms_id,cd_detno");
  164. dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
  165. Step = new Dictionary<int, string>();
  166. StepName = new Dictionary<int, string>();
  167. for (int i = 0; i < dt.Rows.Count + 2; i++)
  168. {
  169. if (i == 0)
  170. {
  171. Step.Add(i, "开始");
  172. StepName.Add(i, "开始");
  173. }
  174. else if (i == dt.Rows.Count + 1)
  175. {
  176. Step.Add(i, "结束");
  177. StepName.Add(i, "开始");
  178. }
  179. else
  180. {
  181. Step.Add(i, dt.Rows[i - 1]["CD_STEPCODE"].ToString());
  182. StepName.Add(i, dt.Rows[i - 1]["cd_stepname"].ToString());
  183. }
  184. }
  185. //添加中间节点
  186. bool passed = true;
  187. int index = 0;
  188. for (int i = 0; i < dt.Rows.Count; i++)
  189. {
  190. //正在生产的途程才算
  191. if (dt.Rows[i]["ms_id"].ToString() == ms_id.Rows[ms_id.Rows.Count - 1]["ms_id"].ToString())
  192. {
  193. if (nextStepCode == dt.Rows[i]["CD_STEPCODE"].ToString())
  194. {
  195. index = i;
  196. }
  197. }
  198. }
  199. for (int i = 0; i < dt.Rows.Count; i++)
  200. {
  201. //只考虑正在生产的途程,之前工单的途程工序必定为绿色完工
  202. if (dt.Rows[i]["ms_id"].ToString() == ms_id.Rows[ms_id.Rows.Count - 1]["ms_id"].ToString())
  203. {
  204. ////下一步不在途程中,不良或者报废或者完工
  205. if (nextStepCode == "" || nextStepCode == " ")
  206. {
  207. //返工单
  208. if (currentStep == "")
  209. {
  210. passed = false;
  211. }
  212. //找到不良步骤
  213. if (BadStep == dt.Rows[i]["CD_STEPCODE"].ToString())
  214. {
  215. PaintColor.Add(Brushes.Red);
  216. //是不良品,后面就不执行
  217. passed = false;
  218. }
  219. //找到报废步骤
  220. else if (PastStep.Contains(dt.Rows[i]["CD_STEPCODE"].ToString() + "," + RejectStep) && RejectStep != "")
  221. {
  222. PaintColor.Add(Brushes.Black);
  223. //是报废品,后面就不执行
  224. passed = false;
  225. }
  226. else
  227. {
  228. //通过加绿色
  229. if (PastStep.Contains(dt.Rows[i]["CD_STEPCODE"].ToString()))
  230. {
  231. PaintColor.Add(Brushes.Green);
  232. }
  233. //不通过加白色
  234. else
  235. {
  236. PaintColor.Add(Brushes.White);
  237. }
  238. }
  239. }
  240. ////序列号下一步不为空
  241. else
  242. {
  243. /////SN下一步是否在途程中,是则标记
  244. //找到下一步
  245. if (i < index)
  246. {
  247. //已执行
  248. //判断是否为OQC工序
  249. //if (dt.Rows[i]["cd_ifoqc"].ToString() == "-1")
  250. //{
  251. // string oqcpass = dh.getFieldDataByCondition("oqcbatch", "ob_status", "ob_checkno = '" + checkno + "'").ToString();
  252. // if (oqcpass == "OK")
  253. // {
  254. // PaintColor.Add(Brushes.Green);
  255. // }
  256. // else
  257. // {
  258. // PaintColor.Add(Brushes.White);
  259. // }
  260. //}
  261. //else
  262. PaintColor.Add(Brushes.Green);
  263. }
  264. else
  265. {
  266. //未执行
  267. PaintColor.Add(Brushes.White);
  268. }
  269. }
  270. }
  271. else
  272. {
  273. //就是之前生产的途程,为绿色,除了返工
  274. if (flag && (dt.Rows[i + 1]["ms_id"].ToString() == ms_id.Rows[ms_id.Rows.Count - 1]["ms_id"].ToString()))
  275. {
  276. PaintColor.Add(Brushes.Red);
  277. }
  278. else
  279. {
  280. PaintColor.Add(Brushes.Green);
  281. }
  282. }
  283. }
  284. if (ifRework != "0")
  285. {
  286. //完工添加绿色,未完工添加白色
  287. if (dh.CheckExist("Makeserial", "ms_id='" + ms_id.Rows[ms_id.Rows.Count - 1]["ms_id"] + "' and ms_reworkstatus='2'"))
  288. PaintColor.Add(Brushes.Green);
  289. else
  290. PaintColor.Add(Brushes.White);
  291. }
  292. else
  293. {
  294. //完工添加绿色,未完工添加白色
  295. if (dh.CheckExist("Makeserial", "ms_id='" + ms_id.Rows[ms_id.Rows.Count - 1]["ms_id"] + "' and ms_status='2'"))
  296. PaintColor.Add(Brushes.Green);
  297. else
  298. PaintColor.Add(Brushes.White);
  299. }
  300. Refresh();
  301. SerialPanel.Refresh();
  302. StringBuilder mp_sncodes = new StringBuilder();
  303. StringBuilder makecodes = new StringBuilder();
  304. //拼接序列号的和工单号的
  305. for (int i = 0; i < ListA.Rows.Count; i++)
  306. {
  307. //sql mp_sncode
  308. mp_sncodes.Append("'" + ListA.Rows[i]["ms_sncode"].ToString() + "'," + (ListA.Rows[i]["ms_firstsn"].ToString() == "" ? "" : (" '" + ListA.Rows[i]["ms_firstsn"].ToString() + "',")));
  309. //sql ma_code
  310. makecodes.Append("'" + ListA.Rows[i]["ms_makecode"].ToString() + "',");
  311. }
  312. sql.Clear();
  313. sql.Append("select MBR_BRNAME||' '||MBR_SOLUTIONNAME||' '|| MBR_REMARK MBR_BRNAME,MP_RESULT,MP_SNCHECKNO,mp_makecode,ma_prodcode,std_class,sc_linecode,ma_craftcode,mp_sourcecode,mp_sncode,");
  314. sql.Append("MB_BADREMARK mb_badcode,to_char(mp_indate,'yyyy-mm-dd hh24:mi:ss')mp_indate,mp_inman,em_name from makeprocess left join make on mp_makecode=ma_code left join employee on mp_inman = em_code left join source on ");
  315. sql.Append("mp_sourcecode=sc_code left join STEPTESTDETAIL on std_sn=mp_sncode and to_char(mp_indate,'yyyy-mm-dd hh24:mi:ss')=to_char(STD_INDATE,'yyyy-mm-dd hh24:mi:ss')" +
  316. "left join (select max(mb_id)mb_id,wm_concat(distinct mb_badcode||' '||MB_BADNAME)||" +
  317. "' '||wm_concat(distinct MB_BADREMARK) MB_BADREMARK,mb_sncode,to_char(mb_indate,'yyyy-mm-dd hh24:mi:ss')mb_indate from makebad group by mb_sncode,to_char(mb_indate,'yyyy-mm-dd hh24:mi:ss') ) on mb_sncode=mp_sncode and to_char(mp_indate,'yyyy-mm-dd hh24:mi:ss')=mb_indate " +
  318. "left join MAKEBADREASON on mbr_mbid=mb_id where mp_sncode in (" + mp_sncodes.ToString().Substring(0, mp_sncodes.ToString().Length - 1) + ") and ma_code in (" + makecodes.ToString().Substring(0, makecodes.ToString().Length - 1) + ") order by mp_indate");
  319. dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
  320. BaseUtil.FillDgvWithDataTable(CraftInfDgv, dt);
  321. sql.Clear();
  322. sql.Append("select cm_barcode,cm_fsoncode,cm_sncode,cm_indate,cm_inman," +
  323. "case when cm_status=0 then '上线' else '已拆解' end cm_status from craftmaterial where cm_sncode='" + sncode + "'" +
  324. "union " +
  325. "select cm_barcode,cm_fsoncode,cm_sncode,cm_indate,cm_inman," +
  326. "case when cm_status=0 then '上线' else '已拆解' end cm_status from craftmaterial where cm_barcode='" + sncode + "'");
  327. dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
  328. if (dt.Rows.Count > 0)
  329. {
  330. BaseUtil.FillDgvWithDataTable(CraftMaterial, dt);
  331. }
  332. else
  333. {
  334. sql.Clear();
  335. sql.Append("select cm_barcode,cm_fsoncode,cm_sncode,cm_indate,cm_inman," +
  336. "case when cm_status=0 then '上线' else '已拆解' end cm_status from craftmaterial where cm_barcode='" + sn_code.Text + "'");
  337. dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
  338. BaseUtil.FillDgvWithDataTable(CraftMaterial, dt);
  339. }
  340. }
  341. else MessageBox.Show("序列号" + sn_code.Text + "不存在");
  342. }
  343. }
  344. private void SerialPanel_Paint(object sender, PaintEventArgs e)
  345. {
  346. if (Step != null)
  347. {
  348. //设置一行五个展示数量
  349. int RectangleCountEachRow = 5;
  350. int x = 40;
  351. int y = SerialPanel.Height / 10;
  352. int CurrentIndex = 0;
  353. //根据记录的数量判断行数
  354. int RowCount = (Step.Count % RectangleCountEachRow) == 0 ? (Step.Count / RectangleCountEachRow) : (Step.Count / RectangleCountEachRow) + 1;
  355. //每行的循环
  356. for (int i = 1; i <= RowCount; i++)
  357. {
  358. for (int j = CurrentIndex; j < RectangleCountEachRow * i; j++)
  359. {
  360. //创建画板
  361. Graphics g = e.Graphics;
  362. //途程节点的矩形
  363. Rectangle r;
  364. if (Step[j].Contains("开始") || Step[j].Contains("结束"))
  365. {
  366. r = new Rectangle(0, 0, 40, 40);
  367. }
  368. else
  369. r = new Rectangle();
  370. r.Width = SerialPanel.Width / 10;
  371. r.Height = SerialPanel.Height / 8;
  372. //画箭头的Pen
  373. Pen p = new Pen(Color.CadetBlue, 15);
  374. p.StartCap = LineCap.Round;
  375. p.EndCap = LineCap.ArrowAnchor;
  376. //方块内的信息
  377. Label Param = new Label();
  378. Param.Text = j + " " + StepName[j];
  379. Param.Name = j + Step[j] + "_label";
  380. Param.AutoSize = true;
  381. Param.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
  382. Param.Anchor = AnchorStyles.Left;
  383. Param.Anchor = AnchorStyles.Top;
  384. //获取param的宽度和高度
  385. Graphics graphics = Graphics.FromHwnd(Param.Handle);
  386. SizeF size = graphics.MeasureString(Param.Text, Param.Font);
  387. //设定param文本框的位置
  388. //Param.Location = new Point(x + r.Width / 14 * RectangleCountEachRow, y + r.Height / 10 * 4);
  389. Param.Location = new Point(SerialPanel.AutoScrollPosition.X + x + (int)(r.Width - size.Width) / 2, SerialPanel.AutoScrollPosition.Y + y + (int)(r.Height - size.Height) / 2);
  390. graphics.Dispose();
  391. //如果在奇数行
  392. if (i % 2 != 0)
  393. {
  394. r.Location = new Point(SerialPanel.AutoScrollPosition.X + x, SerialPanel.AutoScrollPosition.Y + y);
  395. g.FillRectangle(PaintColor[j], r);
  396. //填充方块内的信息
  397. if (SerialPanel.Controls[Param.Name] == null)
  398. SerialPanel.Controls.Add(Param);
  399. if (j + 1 == Step.Count)
  400. break;
  401. //画箭头
  402. //如果是一行中的箭头
  403. if (j + 1 < RectangleCountEachRow * i)
  404. {
  405. g.DrawLine(p, SerialPanel.AutoScrollPosition.X + x + r.Width + 10, SerialPanel.AutoScrollPosition.Y + y + r.Height / 2, SerialPanel.AutoScrollPosition.X + x + ScreenWidth / (RectangleCountEachRow), SerialPanel.AutoScrollPosition.Y + y + r.Height / 2);
  406. x += ScreenWidth / RectangleCountEachRow;
  407. }
  408. //如果是行的最后一个的箭头
  409. else if (j + 1 == RectangleCountEachRow * i)
  410. {
  411. g.DrawLine(p, SerialPanel.AutoScrollPosition.X + x + r.Width / 2, SerialPanel.AutoScrollPosition.Y + y + r.Height + 10, SerialPanel.AutoScrollPosition.X + x + r.Width / 2, SerialPanel.AutoScrollPosition.Y + y + r.Height + r.Height);
  412. y = y + r.Height + r.Height;
  413. }
  414. }
  415. //如果在偶数行
  416. else
  417. {
  418. r.Location = new Point(SerialPanel.AutoScrollPosition.X + x, SerialPanel.AutoScrollPosition.Y + y);
  419. g.FillRectangle(PaintColor[j], r);
  420. //填充文字信息
  421. //存在这个名称的则不进行添加
  422. if (SerialPanel.Controls[Param.Name] == null)
  423. {
  424. SerialPanel.Controls.Add(Param);
  425. }
  426. //如果最后一个的画则直接Break,不用画箭头了
  427. if (j + 1 == Step.Count)
  428. {
  429. break;
  430. }
  431. //如果不是本行的最后一个画横向的箭头
  432. if (j + 1 < RectangleCountEachRow * i)
  433. {
  434. g.DrawLine(p, SerialPanel.AutoScrollPosition.X + (x - 10), SerialPanel.AutoScrollPosition.Y + (y + r.Height / 2), SerialPanel.AutoScrollPosition.X + (x - ScreenWidth / RectangleCountEachRow + r.Width), SerialPanel.AutoScrollPosition.Y + (y + r.Height / 2));
  435. x -= ScreenWidth / RectangleCountEachRow;
  436. }
  437. //如果是最后一个画纵向的箭头
  438. else if (j + 1 == RectangleCountEachRow * i)
  439. {
  440. g.DrawLine(p, SerialPanel.AutoScrollPosition.X + (x + r.Width / 2), SerialPanel.AutoScrollPosition.Y + (y + r.Height + 10), SerialPanel.AutoScrollPosition.X + (x + r.Width / 2), SerialPanel.AutoScrollPosition.Y + (y + r.Height + r.Height));
  441. y = y + r.Height + r.Height;
  442. }
  443. }
  444. CurrentIndex = CurrentIndex + 1;
  445. }
  446. }
  447. }
  448. }
  449. private void SerialPanel_Scroll(object sender, ScrollEventArgs e)
  450. {
  451. Graphics g = this.SerialPanel.CreateGraphics();
  452. g.Clear(this.BackColor);
  453. SerialPanel.Refresh();
  454. }
  455. private void TestFile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  456. {
  457. }
  458. private void CraftInfDgv_CellContentClick(object sender, DataGridViewCellEventArgs e)
  459. {
  460. if (e.RowIndex > 0)
  461. {
  462. if (CraftInfDgv.Columns[e.ColumnIndex].Name.ToUpper() == "STD_CLASS")
  463. {
  464. if (CraftInfDgv.Rows[e.RowIndex].Cells["STD_CLASS"].Value != null)
  465. {
  466. System.Diagnostics.Process.Start(CraftInfDgv.Rows[e.RowIndex].Cells["STD_CLASS"].Value.ToString());
  467. }
  468. }
  469. }
  470. }
  471. }
  472. }