Пример #1
0
        /// <summary>
        /// 单位选择
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PartsMange_MaterialBankManage_AddMaterialInfor_UnitMeasure_ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var unitForm = new MeasurementUnitBuild();

            unitForm.Tag = "choose";
            unitForm.ShowDialog();
            if (unitForm.DialogResult == DialogResult.OK)
            {
                if (unitForm.unit == null)
                {
                    return;
                }
                PartsMange_MaterialBankManage_AddMaterialInfor_UnitMeasure_ButtonEdit.Text = unitForm.unit.name;
                material.Unit_Id       = unitForm.unit.id.ToString();
                material.Unit_Group_Id = unitForm.unit.unit_group_id.ToString();
            }
        }
Пример #2
0
 /// <summary>
 /// 单位选择
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PartsMange_MaterialBankManage_AddMaterialInfor_UnitMeasure_ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     var unitForm = new MeasurementUnitBuild();
     unitForm.Tag = "choose";
     unitForm.ShowDialog();
     if (unitForm.DialogResult == DialogResult.OK)
     {
         if (unitForm.unit == null) return;
         PartsMange_MaterialBankManage_AddMaterialInfor_UnitMeasure_ButtonEdit.Text = unitForm.unit.name;
         material.Unit_Id = unitForm.unit.id.ToString();
         material.Unit_Group_Id = unitForm.unit.unit_group_id.ToString();
     }
 }