Example #1
0
        private void imbt_SelectGroup_Click(object sender, EventArgs e)
        {
            CheckListBoxFlag = 0;
            List <string> LsCraft           = new List <string>();
            Dictionary <string, object> mst = new Dictionary <string, object>();
            DataTable dt = craftinfo.GetAllCraftInfo(mst).Tables[0];

            DataTable temp = null;

            if (dt.Rows.Count > 0)
            {
                dt   = FrmBLL.publicfuntion.DataTableToSort(dt, "CRAFTNAME");
                temp = FrmBLL.publicfuntion.getNewTable(dt, string.Format("TESTFLAG<>'{0}'", "2"));
            }
            DataTable dtLine = new DataTable();

            dtLine.Columns.Add("SECTION", typeof(string));
            dtLine.Columns.Add("GROUP", typeof(string));
            dtLine.Columns.Add("STATION", typeof(string));
            foreach (DataRow dr in temp.Rows)
            {
                LsCraft.Add(dr["CRAFTNAME"].ToString());
            }

            Frm_CheckListBox clb = new Frm_CheckListBox(this, LsCraft);

            clb.ShowDialog();
        }
Example #2
0
        private void imbt_keyparts_Click(object sender, EventArgs e)
        {
            CheckListBoxFlag = 1;
            List <string> ListSerial = Product.GetLableList();

            Frm_CheckListBox clb = new Frm_CheckListBox(this, ListSerial);

            clb.ShowDialog();
        }
Example #3
0
        private void imbt_clearSerialType_Click(object sender, EventArgs e)
        {
            Serial_Type = string.Empty;
            Frm_CheckListBox fclb = new Frm_CheckListBox(this, refWebtProduct.Instance.GetLableList().ToList());

            if (fclb.ShowDialog() == DialogResult.OK)
            {
                txt_clear_serial_type.Text = Serial_Type;
            }
        }
Example #4
0
        private void imbt_SelectwoId_Click(object sender, EventArgs e)
        {
            DataTable     dt     = FrmBLL.ReleaseData.arrByteToDataTable(refWebtWoInfo.Instance.GetWoInfo(null, null, "WOID")); //woinfo.GetWoInfo(null, null, "WOID").Tables[0];
            DataTable     dtSort = FrmBLL.publicfuntion.DataTableToSort(dt, "WOID");
            List <string> lsWoid = new List <string>();

            foreach (DataRow dr in dt.Rows)
            {
                lsWoid.Add(dr["WOID"].ToString());
            }

            Frm_CheckListBox fcl = new Frm_CheckListBox(this, lsWoid);

            fcl.ShowDialog();
        }