void LoadTreeview() { ProductUtility obj = new ProductUtility(treeView1); obj.BuildRootPart(); ComboboxUtility.BindSupplier(cboSupplier); FormUtility.ResetForm(this); }
private void cboSupplier_DropDown(object sender, EventArgs e) { if (isLoad) { isLoad = false; ComboboxUtility.BindSupplier(cboSupplier); } }
private void toolStripMenuItem5_Click(object sender, EventArgs e) { TreeTagPart treetag = treeView1.SelectedNode.Tag as TreeTagPart; if (treetag != null) { isCreateNew.SeriesPartID = treetag.SeriesPartIDTag; } txtNamePart.Text = string.Empty; txtDescription.Text = string.Empty; txtPricePart.Text = string.Empty; PictureImage.InitialImage = null; FormUtility.ResetForm(pnlContent); ComboboxUtility.BindSupplier(cboSupplier); }
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); }
private void createSourcingToolStripMenuItem_Click(object sender, EventArgs e) { TreeTagPart treetag = treeView1.SelectedNode.Tag as TreeTagPart; mainCreate = treetag; if (treetag != null) { isCreateNew.SeriesPartID = treetag.SeriesPartIDTag; } txtNamePart.Tag = txtNamePart.Text; objBackUp = new PartBackUp(); objBackUp.PartName = txtNamePart.Text; objBackUp.Description = txtDescription.Text; objBackUp.PartName = txtNumberPart.Text; objBackUp.Pricespart = txtPricePart.Text != string.Empty ? decimal.Parse(txtPricePart.Text) : 0; objBackUp.ImagePath = PictureImage.Tag != null?PictureImage.Tag.ToString() : null; objBackUp.ImagePath = currentImagePath; PictureUtility.BindImage(PictureImage, "@32121"); txtNamePart.Text = string.Empty; txtDescription.Text = string.Empty; txtNumberPart.Text = string.Empty; txtPricePart.Text = string.Empty; PictureImage.InitialImage = null; ComboboxUtility.BindSupplier(cboSupplier); lbTitle.Text = "Create new sourcing"; isInsert = true; isUpdate = false; txtPricePart.ReadOnly = false; txtNamePart.ReadOnly = false; txtDescription.ReadOnly = false; cboSupplier.Enabled = true; txtNumberPart.ReadOnly = false; }
private void frmMaterialList_Load(object sender, EventArgs e) { ComboboxUtility.BindSupplier(cbbSupplier); btnSearch.PerformClick(); }