Ejemplo n.º 1
0
        private void btnPWOModify_Click(object sender, EventArgs e)
        {
            int idx = grdvPWOs.GetFocusedDataSourceRowIndex();

            if (idx >= 0 && idx < pwos.Count)
            {
                BatchPWOInfo pwo = pwos[idx];

                using (Dialogs.frmPWOInProductionEditor_Remark formEditor =
                           new Dialogs.frmPWOInProductionEditor_Remark(
                               ref pwo))
                {
                    if (formEditor.ShowDialog() == DialogResult.OK)
                    {
                        grdvPWOs.UpdateCurrentRow();

                        grdvPWOs.BestFitColumns();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public frmPWOInProductionEditor_Remark(
            ref BatchPWOInfo pwo) : this()
        {
            this.pwo = pwo;

            if (pwo == null)
            {
                throw new Exception("生产工单对象不能空白!");
            }
            else
            {
                edtPWONo.Text         = pwo.PWONo;
                edtProductNo.Text     = pwo.T102Code;
                edtProductName.Text   = pwo.T102Name;
                edtBatchNo.Text       = pwo.LotNumber;
                edtTextureCode.Text   = pwo.Texture;
                edtQuantity1.Value    = Convert.ToDecimal(pwo.Quantity1);
                edtQuantity2.Value    = Convert.ToDecimal(pwo.Quantity2);
                edtDisplayRemark.Text = pwo.DisplayRemark;
            }
        }