Пример #1
0
        public void Form_Load(object sender, System.EventArgs e)
        {
            base.sSvrPgmPkgName = "CGA3000C";
            Form_Define();
            txt_OCCR_TS.RawDate    = System.DateTime.Now.ToString();
            txt_OCCR_TS2.RawDate   = System.DateTime.Now.ToString();
            OPT_SCRAP_WAIT.Checked = true;
            label3.Visible         = false;
            CBO_SHIFT.Visible      = false;
            label4.Text            = "转库日期";
            label3.Visible         = false;
            CBO_SHIFT.Visible      = false;
            TXT_FLAG.Text          = "1";

            FarPoint.Win.Spread.CellType.ComboBoxCellType cb4 = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
            //cb4.ListWidth = 96;
            //cb4.Editable = true;
            //cb4.MaxDrop = 10;
            //cb4.MaxLength = 1;
            //添加选项代码
            string[] priceTagList = new string[] { "9无", "0手写号", "1标识不清", "2毛刺", "3尺寸不符", "4接坯", "5裂纹", "6凹坑", "7角裂", "8割缝" };
            cb4.Items = priceTagList;
            ss1.ActiveSheet.Columns[12].CellType = cb4;
            priceTagList = new string[] { "0:合格", "1:不合格" };
            cb4.Items    = priceTagList;
            ss1.ActiveSheet.Columns[14].CellType = cb4;

            //txt_cur_inv.Text = "ZB";
            //txt_prod_cd.Text = "SL";
            //     base.sAuthority = "1111";
        }
Пример #2
0
        private void CGH2020C_Load(object sender, EventArgs e)
        {
            base.sSvrPgmPkgName = "CGH2020NC";
            Form_Define();

            FarPoint.Win.Spread.CellType.ComboBoxCellType cb4 = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
            //cb4.ListWidth = 96;
            //cb4.Editable = true;
            //cb4.MaxDrop = 10;
            //cb4.MaxLength = 1;
            //添加选项代码
            string[] shiftList = new string[] { "1", "2", "3" };
            cb4.Items = shiftList;
            ss1.ActiveSheet.Columns[9].CellType = cb4;

            CBO_PLT.Text = "C3";
        }