public FormQuote() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_Quote"); dtpStart.Value = DateTime.Now.AddYears(-1); dtpEnd.Value = DateTime.Now.AddYears(1); UIControls.ToolStripMenuItemEx tmiQuoteImage = new UIControls.ToolStripMenuItemEx(); tmiQuoteImage.Text = "报盘附件"; tmiQuoteImage.FunCode = "50"; tmiQuoteImage.Click += tmiQuoteImage_Click; menuStrip1.Items.Insert(menuStrip1.Items.IndexOf(tmiClose), tmiQuoteImage); UIControls.ToolStripMenuItemEx tmiAddFish = new UIControls.ToolStripMenuItemEx(); tmiAddFish.Text = "新增鱼粉"; tmiAddFish.FunCode = "51"; tmiAddFish.Click += tmiAddFish_Click; menuStrip1.Items.Insert(menuStrip1.Items.IndexOf(tmiClose), tmiAddFish); FishEntity.SystemDataType item = new FishEntity.SystemDataType(string.Empty, string.Empty); List <FishEntity.SystemDataType> list = FishEntity.Variable.ProductDataTypeList.GetRange(0, FishEntity.Variable.ProductDataTypeList.Count); list.Insert(0, item); cmbCountry.DataSource = list; cmbCountry.DisplayMember = "name"; cmbCountry.ValueMember = "code"; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true);// InitDataUtil.BindComboBoxData(cmbPZ, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbPort, FishEntity.Constant.port, true); DealDataGridViewHeader(); }
public FormBilloflading() { InitializeComponent(); this.panel1.Enabled = false; InitDataUtil.BindComboBoxData(cmbspecification, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbspecies, FishEntity.Constant.Goods, true); }
public FormPoundsingletable() { InitializeComponent(); InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbName, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(cmbSpecification, FishEntity.Constant.Specification, true); }
private void FormPurchaseApplication_Load(object sender, EventArgs e) { InitDataUtil.BindComboBoxData(txtvarieties, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(txtquaSpe, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(txtconutry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(txtbrand, FishEntity.Constant.Brand, true); }
private void FormSalesTables_Load(object sender, System.EventArgs e) { this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStart.CustomFormat = " "; this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpEnd.CustomFormat = " "; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbId.DataSource = _bll.getCode(); cmbId.DisplayMember = "code"; cobCodeNum.DataSource = _bll.getCodeNum(); cobCodeNum.DisplayMember = "code"; menuStrip1.Visible = true; tmiAdd.Visible = false; tmiModify.Visible = false; tmiDelete.Visible = false; tmiExport.Visible = false; tmiNext.Visible = false; tmiPrevious.Visible = false; tmiSave.Visible = false; tmiCancel.Visible = false; tmiClose.Visible = true; tmiQuery.Visible = true; cmbId.SelectedIndex = -1; cobCodeNum.SelectedIndex = -1; DealDataGridViewHeader(); }
public FormBilloftable() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_105"); InitDataUtil.BindComboBoxData(cmbspecification, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbspecies, FishEntity.Constant.Goods, true); }
public FormQuotationPriceList(string code) { InitializeComponent(); _model = new FishEntity.QuotationPriceListEntity(); _bll = new FishBll.Bll.QuotationPriceListBll(); InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(brand, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(qualitySpe, FishEntity.Constant.Specification, true); country.SelectedValueChanged -= country_SelectedValueChanged; InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); country.SelectedValueChanged += country_SelectedValueChanged; txtdataForm.Items.Add("报盘"); txtdataForm.Items.Add("确盘"); txtdataForm.Items.Add("现货"); txtdataForm.Items.Add("自营仓库"); txtdataForm.Items.Add("自制仓库"); if (code != "") { _model = _bll.getModel(" code='" + code + "' "); if (_model == null) { MessageBox.Show("已经没有记录了"); return; } setValue(); } }
public FormPoundsingletable() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_122"); InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbName, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(cmbSpecification, FishEntity.Constant.Specification, true); }
private void FormPresaleRequisition_Load(object sender, EventArgs e) { InitDataUtil.BindComboBoxData(cmbtransport, FishEntity.Constant.Modeoftransport, true); InitDataUtil.BindComboBoxData(yfCountry, FishEntity.Constant.CountryType, true); //panel2 . Enabled = false; BindCountryBrandData( ); menuStrip1.Visible = true; tmiQuery.Visible = true; tmiAdd.Visible = true; tmiModify.Visible = false; tmiDelete.Visible = false; tmiClose.Visible = true; tmiCancel.Visible = false; tmiSave.Visible = false; tmiNext.Visible = false; tmiPrevious.Visible = false; tmiExport.Visible = false; tmiReview.Visible = false; _rolewhere = Megres.oddNum; //QueryByWhere ( ); }
public FormPurchaseRequisition() { MenuCode = "M432"; ControlButtomRoles(); InitializeComponent(); InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); dtpdatebefore.Value = DateTime.Now.AddYears(-1); cmbvalidate.Text = "有效"; }
private void InitData() { InitDataUtil.BindComboBoxData(cmbBrand, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(cmbNature, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbspeccification, FishEntity.Constant.Specification, true); dtpstart.Value = DateTime.Now.AddMonths(-2); dtpend.Value = DateTime.Now; }
public FormCustomStandardTable( ) { InitializeComponent( ); ReadColumnConfig(dataGridView1, "Set_107"); MenuCode = "M458"; ControlButtomRoles(); InitDataUtil.BindComboBoxData(txtlevel, FishEntity.Constant.Specification, true); _model = new FishEntity.CustomStandardTableEntity( ); _bll = new FishBll.Bll.CustomStandardTableBll( ); }
public FormEnterWarehouseReceipts() { InitializeComponent(); InitDataUtil.BindComboBoxData(cmbproName, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(cmbqualitySpe, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbcountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbbrand, FishEntity.Constant.Brand, true); }
public FormReturnReceipt(string name) { InitializeComponent(); _model = new FishEntity.ReturnReceiptEntity(); _bll = new FishBll.Bll.ReturnReceiptBll(); InitDataUtil.BindComboBoxData(txtcountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(txtbrand, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(txtvarieties, FishEntity.Constant.Goods, true); getname = name; panel1.Enabled = false; }
public FormOnepound() { InitializeComponent(); cmbCountry.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbCountry.SelectedValueChanged += cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbName, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(cmbspecies, FishEntity.Constant.Goods, true); this.panel1.Enabled = false; BindCountryBrandData(); }
public FormStorageOfRequisition(string codenum) { InitializeComponent(); getname = codenum; _model = new FishEntity.StorageOfRequisitionEntity(); _bll = new FishBll.Bll.StorageOfRequisitionBll(); InitDataUtil.BindComboBoxData(txtcountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(txtbrand, FishEntity.Constant.Brand, true); txtcountry.SelectedValueChanged -= country_SelectedValueChanged; InitDataUtil.BindComboBoxData(txtcountry, FishEntity.Constant.CountryType, true); txtcountry.SelectedValueChanged += country_SelectedValueChanged; }
public FormPurchaseApplication(string name) { InitializeComponent(); this.tmiPrevious.Visible = false; this.tmiNext.Visible = false; this.panel1.Enabled = false; getname = name; //InitDataUtil.BindComboBoxData(txtproName, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(txtbrands, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(txtvarieties, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(txtcountry, FishEntity.Constant.CountryType, true); }
public FormBilloflading() { InitializeComponent(); this.panel1.Enabled = false; InitDataUtil.BindComboBoxData(cmbspecification, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbspecies, FishEntity.Constant.Goods, true); cmbCountry.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbCountry.SelectedValueChanged += cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbBrands, FishEntity.Constant.Brand, true); BindCountryBrandData(); }
public FormWarehouseReceipt(string name) { InitializeComponent(); getname = name; _model = new FishEntity.WarehouseReceiptEntity(); _bll = new FishBll.Bll.WarehouseReceiptBll(); _pic = new FishEntity.PicInfoAll(); InitDataUtil.BindComboBoxData(cmbStartingCountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbDestinationCountry, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(cmbcountryOfOrigin, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(txtcommodityTons, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(txtProductionProcess, FishEntity.Constant.TechClass, true); }
public FormOutboundOrder(string name) { InitializeComponent(); getname = name; _model = new FishEntity.OutboundOrderEntity(); _bll = new FishBll.Bll.OutboundOrderBll(); InitDataUtil.BindComboBoxData(txttype, FishEntity.Constant.FishClass, true); cmbCountry.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbCountry.SelectedValueChanged += cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbBrands, FishEntity.Constant.Brand, true); BindCountryBrandData(); }
public FormSelfMake() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_SelfMake"); //tmiModify.Visible = false; //tmiDelete.Visible = false; //tmiPrevious.Visible = false; //tmiNext.Visible = false; //tmiSave.Visible = false; //tmiCancel.Visible = false; //tmiAdd.Visible = false; //tmiExport.Visible = false; //USER-GFH6FVIQL8 dtpStart.Value = DateTime.Now.AddYears(-1); dtpEnd.Value = DateTime.Now.AddYears(1); UIControls.ToolStripMenuItemEx tmiQuoteImage = new UIControls.ToolStripMenuItemEx(); tmiQuoteImage.Text = "报盘附件"; tmiQuoteImage.FunCode = "50"; tmiQuoteImage.Click += tmiQuoteImage_Click; menuStrip1.Items.Insert(menuStrip1.Items.IndexOf(tmiClose), tmiQuoteImage); UIControls.ToolStripMenuItemEx tmiAddFish = new UIControls.ToolStripMenuItemEx(); tmiAddFish.Text = "新增鱼粉"; tmiAddFish.FunCode = "51"; tmiAddFish.Click += tmiAddFish_Click; menuStrip1.Items.Insert(menuStrip1.Items.IndexOf(tmiClose), tmiAddFish); FishEntity.SystemDataType item = new FishEntity.SystemDataType(string.Empty, string.Empty); List <FishEntity.SystemDataType> list = FishEntity.Variable.StateList.GetRange(0, FishEntity.Variable.StateList.Count); list.Insert(0, item); cmbCountry.DataSource = list; cmbCountry.DisplayMember = "name"; cmbCountry.ValueMember = "code"; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true);// InitDataUtil.BindComboBoxData(cmbPZ, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(cmbPort, FishEntity.Constant.port, true); DealDataGridViewHeader(); if (FishEntity.Variable.User.username == "admin" || FishEntity.Variable.User.username == "ceo" || FishEntity.Variable.User.username == "zd_lyk") { this.dataGridView1.ReadOnly = false; } else { this.dataGridView1.ReadOnly = true; } }
public FormSaleRecordReport() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_SaleRecordReport"); FishEntity.SystemDataType item = new FishEntity.SystemDataType(string.Empty, string.Empty); List <FishEntity.SystemDataType> list = FishEntity.Variable.ProductDataTypeList.GetRange(0, FishEntity.Variable.ProductDataTypeList.Count); list.Insert(0, item); cmbCountry.DataSource = list; cmbCountry.DisplayMember = "name"; cmbCountry.ValueMember = "code"; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true);// InitDataUtil.BindComboBoxData(cmbPZ, FishEntity.Constant.Specification, true); //dtpStart.Value = DateTime.Now.AddYears(-1); //dtpEnd.Value = DateTime.Now.AddYears(1); }
public FormOnepound(string name, bool num) { InitializeComponent(); getname = name; getnum = num; tmiReview.Visible = true; cmbCountry.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbCountry.SelectedValueChanged += cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbName, FishEntity.Constant.Brand, true); BindCountryBrandData(); InitDataUtil.BindComboBoxData(cmbspecies, FishEntity.Constant.Goods, true); this.panel1.Enabled = false; }
public FormFinishedProList() { InitializeComponent(); InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(brand, FishEntity.Constant.Brand, true); country.SelectedValueChanged -= country_SelectedValueChanged; InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); country.SelectedValueChanged += country_SelectedValueChanged; MenuCode = "M460"; ControlButtomRoles(); _model = new FishEntity.FinishedProListEntity(); _bll = new FishBll.Bll.FinishedProListBll(); InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(brand, FishEntity.Constant.Brand, true); }
protected void BindData() { try { if (this.DesignMode) { return; } //InitDataUtil.BindComboBoxData(cmbBand, FishEntity.Constant.Brand, true); cmbCountry.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true); cmbCountry.SelectedValueChanged += cmbCountry_SelectedValueChanged; BindCountryBrandData(); } catch { } }
public FormNewFinish() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_chengpin"); FishEntity.SystemDataType item = new FishEntity.SystemDataType(string.Empty, string.Empty); List <FishEntity.SystemDataType> list = FishEntity.Variable.StateList.GetRange(0, FishEntity.Variable.StateList.Count); list.Insert(0, item); cmbCountry.DataSource = list; cmbCountry.DisplayMember = "name"; cmbCountry.ValueMember = "code"; InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CountryType, true);// dtpStart.Value = DateTime.Now.AddYears(-1); dtpEnd.Value = DateTime.Now.AddYears(1); DealDataGridViewHeader(); }
protected void InitData() { BindCheckBoxComboBoxData(FishEntity.Constant.Type); //BindData(cmbType, FishEntity.Constant.Type); InitDataUtil.BindComboBoxData(cmbGenerallevel, FishEntity.Constant.GeneralLevel, true); InitDataUtil.BindComboBoxData(cmbCreditlevel, FishEntity.Constant.CreditLevel, true); InitDataUtil.BindComboBoxData(cmbmanageprojects, FishEntity.Constant.ManageProjects, true); InitDataUtil.BindComboBoxData(cmbCustomerProperty, FishEntity.Constant.CustomerProperty, true); cmbProvince.SelectedValueChanged -= cmbCountry_SelectedValueChanged; InitDataUtil.BindComboBoxData(cmbProvince, FishEntity.Constant.Province, true); cmbProvince.SelectedValueChanged += cmbCountry_SelectedValueChanged; }
public FormReductionClause(string purNum) { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_138"); model = new FishEntity.ReductionClauseEntity(); _bll = new FishBll.Bll.ReductionClauseBll(); InitDataUtil.BindComboBoxData(brand, FishEntity.Constant.Specification, true); InitDataUtil.BindComboBoxData(proName, FishEntity.Constant.Goods, true); InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); getcode = purNum; if (!string.IsNullOrEmpty(purNum)) { strWhere += " AND codeNum='" + purNum + "'"; } Query(); }
public FormQuotationPriceList( ) { InitializeComponent( ); _model = new FishEntity.QuotationPriceListEntity( ); _bll = new FishBll.Bll.QuotationPriceListBll( ); InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); InitDataUtil.BindComboBoxData(brand, FishEntity.Constant.Brand, true); InitDataUtil.BindComboBoxData(qualitySpe, FishEntity.Constant.Specification, true); country.SelectedValueChanged -= country_SelectedValueChanged; InitDataUtil.BindComboBoxData(country, FishEntity.Constant.CountryType, true); country.SelectedValueChanged += country_SelectedValueChanged; txtdataForm.Items.Add("报盘"); txtdataForm.Items.Add("确盘"); txtdataForm.Items.Add("现货"); txtdataForm.Items.Add("自营仓库"); txtdataForm.Items.Add("自制仓库"); }
//UIForms.FormFishCondition _queryForm = null; public FormStorageReport() { InitializeComponent(); ReadColumnConfig(dataGridView1, "Set_StorageReport"); InitDataUtil.BindComboBoxData(cmbCountry, FishEntity.Constant.CompanyNature, true); dataGridView1.BackgroundColor = this.BackColor; dataGridView1.AutoGenerateColumns = false; tmiAdd.Visible = tmiModify.Visible = tmiDelete.Visible = tmiPrevious.Visible = tmiNext.Visible = false; tmiSave.Visible = false; tmiCancel.Visible = false; label3.Text = "0.00"; label5.Text = "0.00"; label7.Text = "0.00"; label8.Text = "0.00"; dtpStart.Value = DateTime.Now.AddYears(-1); dtpEnd.Value = DateTime.Now.AddYears(1); }