Esempio n. 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (!IsCheck())
     {
         return;
     }
     strMaterialId  = CommonCtrl.IsNullToString(dgvRData.CurrentRow.Cells["fetch_id"].Value);
     strDMaterialId = CommonCtrl.IsNullToString(dgvRData.CurrentRow.Cells["material_id"].Value);
     uc.strId       = strMaterialId;  //领料单Id
     uc.strDId      = strDMaterialId; //领料单详情Id
     uc.BindSetmentData();
     this.DialogResult     = DialogResult.OK;
     txtCustomName.Caption = string.Empty;
     txtOrderNo.Caption    = string.Empty;
     dtpReserveSTime.Value = DateTime.Now.AddMonths(-1);
     dtpReserveETime.Value = DateTime.Now;
 }
Esempio n. 2
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            UCFetchMaterialImport      MateriaImport = new UCFetchMaterialImport();
            UCFMaterialReturnAddOrEdit Materialadd   = new UCFMaterialReturnAddOrEdit();

            MateriaImport.uc = Materialadd;
            DialogResult result = MateriaImport.ShowDialog();

            if (result == DialogResult.OK)
            {
                Materialadd.uc      = this;
                Materialadd.wStatus = WindowStatus.Add;
                Materialadd.strId   = MateriaImport.strMaterialId;  //领料单据的Id值
                Materialadd.strDId  = MateriaImport.strDMaterialId; //领料单据的详情Id值
                Materialadd.BindSetmentData();
                base.addUserControl(Materialadd, "领料退货单-添加", "Materialadd" + Materialadd.strId, this.Tag.ToString(), this.Name);
            }
        }
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            UCFetchMaterialImport MateriaImport = new UCFetchMaterialImport();
            UCFMaterialReturnAddOrEdit Materialadd = new UCFMaterialReturnAddOrEdit();
            MateriaImport.uc = Materialadd;
            DialogResult result = MateriaImport.ShowDialog();
            if (result == DialogResult.OK)
            {
                Materialadd.uc = this;
                Materialadd.wStatus = WindowStatus.Add;
                Materialadd.strId = MateriaImport.strMaterialId;  //领料单据的Id值
                Materialadd.strDId = MateriaImport.strDMaterialId;  //领料单据的详情Id值
                Materialadd.BindSetmentData();
                base.addUserControl(Materialadd, "领料退货单-添加", "Materialadd" + Materialadd.strId, this.Tag.ToString(), this.Name);
            }

        }