public frmYarnOrderAssigned()
        {
            InitializeComponent();

            repo = new KnitRepository();
            core = new Util();

            this.comboYarnOrders.CheckStateChanged += new System.EventHandler(this.cmboYarnOrders_CheckStateChanged);
        }
Beispiel #2
0
        public frmK07ReportSel()
        {
            InitializeComponent();

            this.cmbGreigeProduct.CheckStateChanged    += new System.EventHandler(this.cmboGreigeProduct_CheckStateChanged);
            this.cmbKnittingCustomer.CheckStateChanged += new EventHandler(this.cmboKnittingCustomer_CheckStateChanged);
            this.cmbYarnTypes.CheckStateChanged        += new EventHandler(this.cmboYarnTypes_CheckStateChanged);
            this.cmbMachines.CheckStateChanged         += new System.EventHandler(this.cmboMachines_CheckStateChanged);
            this.cmbOperator.CheckStateChanged         += new EventHandler(this.cmboMachineOperators_CheckStateChanged);

            QueryParms = new KnitQueryParameters();
            repo       = new Knitting.KnitRepository();
            core       = new Util();
        }
Beispiel #3
0
        public frmK10ReportSel(bool Version)
        {
            //Note for the file
            // Version = true then produce the detailed report
            // Version = false then produce the summary  report
            //===============================================================
            InitializeComponent();

            repo = new KnitRepository();

            this.cmboProduct.CheckStateChanged      += new System.EventHandler(this.cmboGreigeProduct_CheckStateChanged);
            this.cmboProductGroup.CheckStateChanged += new System.EventHandler(this.cmboProductGroup_CheckStateChanged);
            this.cmboStockTake.CheckStateChanged    += new EventHandler(this.cmboStockTake_CheckStateChanged);
            this.cmboStore.CheckStateChanged        += new EventHandler(this.cmboStore_CheckStateChanged);


            core = new Util();

            rbBIFSummarised.Checked = true;

            BoughtInFabric = false;

            if (Version)
            {
                this.Text = "Greige Stock on hand - full detail";
            }
            else
            {
                this.Text = "Greige Stock on hand - Summary detail";
            }


            MandatoryFields = new string[][]
            { new string[] { "cmboStore", "0" },
              new string[] { "txtGrade", "1" },
              new string[] { "cmboProduct", "2" },
              new string[] { "cmboProductGroup", "3" },
              new string[] { "cmboStockTake", "4" } };
        }
Beispiel #4
0
        private void frmViewOrders_Load(object sender, EventArgs e)
        {
            FormLoaded = false;

            QueryParms = new KnitQueryParameters();
            repo       = new Knitting.KnitRepository();
            core       = new Util();

            txtOrderNumber.Text = string.Empty;

            using (var context = new TTI2Entities())
            {
                var Existing = context.TLADM_Griege.OrderBy(x => x.TLGreige_Description).ToList();
                foreach (var Record in Existing)
                {
                    cmboGreige.Items.Add(new Knitting.CheckComboBoxItem(Record.TLGreige_Id, Record.TLGreige_Description, false));
                }

                var Dept = context.TLADM_Departments.Where(x => x.Dep_ShortCode == "KNIT").FirstOrDefault();
                if (Dept != null)
                {
                    var Machines = context.TLADM_MachineDefinitions.Where(x => x.MD_Department_FK == Dept.Dep_Id).OrderBy(x => x.MD_MachineCode).ToList();
                    foreach (var Machine in Machines)
                    {
                        cmboMachines.Items.Add(new Knitting.CheckComboBoxItem(Machine.MD_Pk, Machine.MD_AlternateDesc, false));
                    }
                }
            }

            oChkA            = new DataGridViewCheckBoxColumn();
            oChkA.HeaderText = "Select";
            oChkA.ValueType  = typeof(Boolean);
            oChkA.Visible    = true;

            oTxtA            = new DataGridViewTextBoxColumn(); // 0 Record Key
            oTxtA.HeaderText = "Key";
            oTxtA.ValueType  = typeof(int);
            oTxtA.Visible    = false;

            oTxtB            = new DataGridViewTextBoxColumn(); // 1 Knit Order Number
            oTxtB.HeaderText = "Knit Order";
            oTxtB.ValueType  = typeof(Int32);
            oTxtB.Visible    = true;
            oTxtB.ReadOnly   = true;

            oTxtC            = new DataGridViewTextBoxColumn(); // 2 Knit Order Quality
            oTxtC.HeaderText = "Quality";
            oTxtC.ValueType  = typeof(String);
            oTxtC.Visible    = true;
            oTxtC.ReadOnly   = true;

            oTxtD            = new DataGridViewTextBoxColumn(); // 3 Knit Order Date
            oTxtD.HeaderText = "Date Ordered";
            oTxtD.ValueType  = typeof(DateTime);
            oTxtD.Visible    = true;
            oTxtD.ReadOnly   = true;

            oTxtE            = new DataGridViewTextBoxColumn(); // 4 Knit Order Requested Date
            oTxtE.HeaderText = "Date Required";
            oTxtE.ValueType  = typeof(DateTime);
            oTxtE.Visible    = true;
            oTxtE.ReadOnly   = true;

            oTxtF            = new DataGridViewTextBoxColumn(); // 5 Knitting Machine
            oTxtF.HeaderText = "Knitting Machine";
            oTxtF.ValueType  = typeof(String);
            oTxtF.Visible    = true;
            oTxtF.ReadOnly   = true;

            oTxtG            = new DataGridViewTextBoxColumn(); // 6 Weight Required
            oTxtG.HeaderText = "Weight Required";
            oTxtG.ValueType  = typeof(Decimal);
            oTxtG.Visible    = true;
            oTxtG.ReadOnly   = true;


            dataGridView1.Columns.Add(oTxtA);
            dataGridView1.Columns.Add(oChkA);
            dataGridView1.Columns.Add(oTxtB);
            dataGridView1.Columns.Add(oTxtC);
            dataGridView1.Columns.Add(oTxtD);
            dataGridView1.Columns.Add(oTxtE);
            dataGridView1.Columns.Add(oTxtF);
            dataGridView1.Columns.Add(oTxtG);


            this.txtOrderNumber.KeyPress += core.txtWin_KeyPress;
            this.txtOrderNumber.KeyDown  += core.txtWin_KeyDownJI;

            this.cmboGreige.CheckStateChanged   += new System.EventHandler(this.cmboGreige_CheckStateChanged);
            this.cmboMachines.CheckStateChanged += new EventHandler(this.cmboMachines_CheckStateChanged);

            FormLoaded = true;
        }