示例#1
0
        /// <summary>
        /// form load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddInspectionProcessForm_Load(object sender, EventArgs e)
        {
            //FormDatatableFromVo();

            //ComboBind(InspectionItem_cmb, inspectionitemDatatable, "Name", "Id");

            InspectionItem_cmb.Text = InspectionItemName;

            LoadJudgeTypeCombo(SpecificationResultJudgeType_cmb);

            LoadOperatorCombo();

            VisibleControlBasedonDataType();

            InspectionSpecificationText_txt.Select();

            if (CheckDataExist())
            {
                return;
            }

            //InspectionItem_cmb.SelectedValue = InspectionItemId;
        }
示例#2
0
        /// <summary>
        /// form load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddInspectionProcessForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            ComboBind(InspectionItem_cmb, inspectionitemDatatable, "Name", "Id");

            LoadJudgeTypeCombo(SpecificationResultJudgeType_cmb);

            InspectionSpecificationCode_txt.Select();

            if (string.Equals(mode, CommonConstants.MODE_UPDATE))
            {
                LoadInspectionSpecificationData(updateData);

                InspectionSpecificationCode_txt.Enabled = false;

                InspectionSpecificationText_txt.Select();
            }
            else if (string.Equals(mode, CommonConstants.MODE_SELECT))
            {
                LoadInspectionSpecificationData(updateData);
            }
        }