Beispiel #1
0
        private void cbbTypePart_SelectedValueChanged(object sender, EventArgs e)
        {
            if (isLoad)
            {
                return;
            }
            TypePart type = cbbTypePart.SelectedItem as TypePart;

            if (type == null)
            {
                return;
            }
            int typepartId = type.TypePartID;

            ComboboxUtility.BindSeriesParttWidthALl(cbbSeriesPart, typepartId.ToString());
        }
Beispiel #2
0
 public FrmViewSupplier()
 {
     InitializeComponent();
     gridUtility = new GridUtility(gridControl1);
     ComboboxUtility.BindSupplierWidthALl(cbSupplier);
     cbSupplier.SelectedValue = 100;
     ComboboxUtility.BindGroupPartWidthALl(cbGroupPart);
     cbGroupPart.SelectedValue = 0;
     ComboboxUtility.BindTypePartWidthALl(cbTypePart, cbGroupPart.SelectedValue.ToString());
     cbTypePart.SelectedValue = 0;
     ComboboxUtility.BindSeriesParttWidthALl(cbSeriesPart, cbTypePart.SelectedValue.ToString());
     cbSeriesPart.SelectedValue = 0;
     ComboboxUtility.BindParttWidthALl(cbPart, cbSeriesPart.SelectedValue.ToString());
     cbPart.SelectedValue = 0;
     Dock = DockStyle.Fill;
     //FormUtility.LoadEventCommonControl(this);
 }
Beispiel #3
0
        private void frmEditMaterial_Load(object sender, EventArgs e)
        {
            ComboboxUtility.BindSupplier(cbbSupplier);
            ComboboxUtility.BindGroupPart(cbbGroupPart);
            ComboboxUtility.BindTypePartWidthALl(cbbTypePart, "0");
            ComboboxUtility.BindSeriesParttWidthALl(cbbSeriesPart, "0");
            ComboboxUtility.BindUnit(cbbUnit);
            FormUtility.FormatForm(this);
            FormUtility.ResetForm(this);

            if (!materialRequestDataBase.IsEdit)
            {
                this.Text = UI.MateralCreateTilteForm;
            }
            else
            {
                this.Text = UI.MateralEditTilteForm;
            }

            InititalizeForm(m_Material);
        }
Beispiel #4
0
        public FrmViewSupplier(InformationSearch _searchInfor)
        {
            InitializeComponent();
            ComboboxUtility.BindSupplierWidthALl(cbSupplier);
            cbSupplier.SelectedValue = 100;
            ComboboxUtility.BindGroupPartWidthALl(cbGroupPart);
            cbGroupPart.SelectedValue = 0;
            ComboboxUtility.BindTypePartWidthALl(cbTypePart, cbGroupPart.SelectedValue.ToString());
            cbTypePart.SelectedValue = 0;
            ComboboxUtility.BindSeriesParttWidthALl(cbSeriesPart, cbTypePart.SelectedValue.ToString());
            cbSeriesPart.SelectedValue = 0;
            ComboboxUtility.BindParttWidthALl(cbPart, cbSeriesPart.SelectedValue.ToString());
            cbPart.SelectedValue = 0;
            Dock = DockStyle.Fill;
            //FormUtility.LoadEventCommonControl(this);

            cbSupplier.SelectedValue   = _searchInfor.SupplierID > -1 ? _searchInfor.SupplierID:100;
            cbGroupPart.SelectedValue  = _searchInfor.SupplierID > 0 ? _searchInfor.GroupPartID : 0;
            cbTypePart.SelectedValue   = _searchInfor.SupplierID > 0 ? _searchInfor.TypePartID : 0;
            cbSeriesPart.SelectedValue = _searchInfor.SupplierID > 0 ? _searchInfor.SeriesPartID : 0;
            cbPart.SelectedValue       = _searchInfor.SupplierID > 0 ? _searchInfor.PartID : 0;
            Search();
        }