| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Server;
- using CoreFS.CA06;
- using System;
- using System.Data;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Qcm
- {
- public partial class ProcessNkIndexPop : FrmBase
- {
- private string _msc = "";
- private string _mscPline = "";
- private string _processCode = "";
- public ProcessNkIndexPop(string msc, string mscPline, string processCode, OpeBase ob)
- {
- InitializeComponent();
- this.ob = ob;
- _msc = msc;
- _mscPline = mscPline;
- _processCode = processCode;
- }
- private void ProcessNkIndexPop_Load(object sender, EventArgs e)
- {
- try
- {
- this.Cursor = Cursors.WaitCursor;
- GetProcessNkIndex(_msc, _mscPline, _processCode);
- }
- finally
- {
- this.Cursor = Cursors.Default;
- }
- }
- private void GetProcessNkIndex(string msc, string mscPline, string processCode)
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getProcessNkIndex",
- new object[] { msc, mscPline, processCode }, ob);
- string cics = "'1'";
- foreach (string str in dt.Rows[0]["CIC"].ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
- {
- cics += ", '" + str + "'";
- }
- DataTable dtCics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdCic",
- new object[] { cics }, ob);
- GridHelper.CopyDataToDatatable(dtCics, this.dataTable1, false);
- string pics = "'1'";
- foreach (string str in dt.Rows[0]["PIC"].ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
- {
- pics += ", '" + str + "'";
- }
- DataTable dtPics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdPic",
- new object[] { pics }, ob);
- GridHelper.CopyDataToDatatable(dtPics, this.dataTable1, false);
- string sics = "'1'";
- foreach (string str in dt.Rows[0]["SIC"].ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
- {
- sics += ", '" + str + "'";
- }
- DataTable dtSics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdSic",
- new object[] { sics }, ob);
- GridHelper.CopyDataToDatatable(dtSics, this.dataTable1, false);
- string dics = "'1'";
- foreach (string str in dt.Rows[0]["DIC"].ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
- {
- dics += ", '" + str + "'";
- }
- DataTable dtDics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdDic",
- new object[] { dics }, ob);
- GridHelper.CopyDataToDatatable(dtDics, this.dataTable1, false);
- string wics = "'1'";
- foreach (string str in dt.Rows[0]["WIC"].ToString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
- {
- wics += ", '" + str + "'";
- }
- DataTable dtWics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdWic",
- new object[] { wics }, ob);
- GridHelper.CopyDataToDatatable(dtWics, this.dataTable1, false);
- string gics = "'1'";
- foreach (string str in dt.Rows[0]["GIC"].ToString().Split())
- {
- gics += ", '" + str + "'";
- }
- DataTable dtGics = ServerHelper.GetData("com.steering.pss.qcm.CoreInnerMSCRGRD2.getStdGic",
- new object[] { gics }, ob);
- GridHelper.CopyDataToDatatable(dtGics, this.dataTable1, false);
- }
- private void ProcessNkIndexPop_Shown(object sender, EventArgs e)
- {
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- }
- }
|