private void com_xfsbh_OnSelectValue(object sender, EventArgs e) { AisinoMultiCombox combox = sender as AisinoMultiCombox; if (combox != null) { Dictionary <string, string> dictionary = combox.SelectDict; this.com_xfmc.Text = dictionary["MC"].ToString(); this.com_xfsbh.Text = dictionary["SH"].ToString(); } }
private void com_xf_DropDown(object sender, EventArgs e) { AisinoMultiCombox combox = (AisinoMultiCombox)sender; object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.Bmgl.BMGLGetKH", new object[] { combox.Text, 0 }); if (objArray.Length == 4) { this.com_xfmc.Text = objArray[0].ToString(); this.com_xfsbh.Text = objArray[1].ToString(); } }
private void com_cyf_DropDown(object sender, EventArgs e) { AisinoMultiCombox combox = (AisinoMultiCombox)sender; object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.Bmgl.BMGLGetSFHR", new object[] { combox.Text, 0 }); if ((objArray != null) && (objArray.Length >= 2)) { this.com_cyfmc.Text = objArray[0].ToString(); this.com_cyfsh.Text = objArray[1].ToString(); } }
private void textBoxSPFL_OnSelectValue(object sender, EventArgs e) { AisinoMultiCombox combox = sender as AisinoMultiCombox; if (combox != null) { Dictionary <string, string> selectDict = combox.SelectDict; this.comBoxSPFL.Text = selectDict["BM"].ToString(); this.SPFLMC.Text = selectDict["MC"].ToString(); this.ComBoxSPFL_OnAutoComplate(this.comBoxSPFL, e); } }
private void InitSpmcCmb() { this._spmcBt = new AisinoMultiCombox(); this._spmcBt.set_IsSelectAll(true); this._spmcBt.Name = "SPMCBT"; this._spmcBt.Text = ""; this._spmcBt.Padding = new Padding(0); this._spmcBt.Margin = new Padding(0); this._spmcBt.Visible = false; this._spmcBt_SetAutoComplateHead(); this._spmcBt.set_AutoComplate(2); this._spmcBt.set_buttonStyle(0); this._spmcBt.add_OnButtonClick(new EventHandler(this._spmcBt_Click)); this._spmcBt.MouseDoubleClick += new MouseEventHandler(this._spmcBt_MouseDoubleClick); this._spmcBt.OnTextChanged = (EventHandler)Delegate.Combine(this._spmcBt.OnTextChanged, new EventHandler(this._spmcBt_TextChanged)); this._spmcBt.PreviewKeyDown += new PreviewKeyDownEventHandler(this._spmcBt_PreviewKeyDown); }
private void dataGridView_RowsRemoved(object sender, EventArgs e) { if (this.dgFyxm.CurrentCell == null) { MessageManager.ShowMsgBox("请选择单据行"); } else { int rowIndex = this.dgFyxm.CurrentCell.RowIndex; this.dgFyxm.Rows.RemoveAt(rowIndex); this.InvoiceKP.DelSpxx(rowIndex); if (this.dgFyxm.Rows.Count == 0) { this.toolStripButtonDel.Enabled = false; AisinoMultiCombox combox = this.dgFyxm.Controls["SPMCBT"] as AisinoMultiCombox; combox.Visible = false; } this.UpdateJE(); } }
private void ComBoxSPFL_OnAutoComplate(object sender, EventArgs e) { string str = ""; AisinoMultiCombox combox = sender as AisinoMultiCombox; if ((combox != null) && combox.Name.Equals("comBoxSPFL")) { str = this.comBoxSPFL.Text.Trim(); } object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.Bmgl.BMGetSPFLMore", new object[] { str, 10, false, "BM,MC,SLV" }); if ((objArray != null) && (objArray.Length > 0)) { DataTable table = objArray[0] as DataTable; if ((combox != null) && (table != null)) { combox.DataSource = table; } } this.AdjustComboBoxYHZC(); this.AdjustComboBoxYHZCMC(); }
private void dataGridView_CurrentCellChanged(object sender, EventArgs e) { CustomStyleDataGrid grid = (CustomStyleDataGrid)sender; AisinoMultiCombox combox = grid.Controls["SPMCBT"] as AisinoMultiCombox; if ((grid.CurrentCell != null) && !grid.CurrentRow.ReadOnly) { DataGridViewColumn owningColumn = grid.CurrentCell.OwningColumn; if (owningColumn.Name.Equals("colFyxm")) { int index = owningColumn.Index; int rowIndex = grid.CurrentCell.RowIndex; Rectangle rectangle = grid.GetCellDisplayRectangle(index, rowIndex, false); if (combox != null) { combox.Left = rectangle.Left; combox.Top = rectangle.Top; combox.Width = rectangle.Width; combox.Height = rectangle.Height; combox.Text = (grid.CurrentCell.Value == null) ? "" : grid.CurrentCell.Value.ToString(); DataTable table = combox.get_DataSource(); if (table != null) { table.Clear(); } combox.Visible = true; combox.Focus(); } } else if (combox != null) { combox.Visible = false; } } else if (((grid.CurrentRow != null) && grid.CurrentRow.ReadOnly) && (combox != null)) { combox.Visible = false; } }
private void com_xfsbh_OnAutoComplate(object sender, EventArgs e) { string text = ""; AisinoMultiCombox combox = sender as AisinoMultiCombox; if ((combox != null) && combox.Name.Equals("com_xfmc")) { text = this.com_xfmc.Text; } else if ((combox != null) && combox.Name.Equals("com_xfsbh")) { text = this.com_xfsbh.Text; } object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.Bmgl.BMGLGetKHMore", new object[] { text, 20, "MC,SH,DZDH,YHZH" }); if ((objArray != null) && (objArray.Length > 0)) { DataTable table = objArray[0] as DataTable; if ((combox != null) && (table != null)) { combox.DataSource = table; } } }
private void Initialize() { this.InitializeComponent(); this.data_jsrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_jsrq"); this.data_ksrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_ksrq"); this.che_jsrq = this.xmlComponentLoader1.GetControlByName <AisinoCHK>("che_jsrq"); this.che_ksrq = this.xmlComponentLoader1.GetControlByName <AisinoCHK>("che_ksrq"); this.but_zhuhechaxun = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_zhuhechaxun"); this.but_ok = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_ok"); this.but_close = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_close"); this.text_sqdh = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("text_sqdh"); this.com_sqdzt = this.xmlComponentLoader1.GetControlByName <AisinoCMB>("com_sqdzt"); this.com_gfsbh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("aisinoMultiCombox1"); this.com_gfsbh.IsSelectAll = true; this.com_gfsbh.buttonStyle = 0; this.com_gfsbh.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.com_gfsbh.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.com_gfsbh.Width - 140)); this.com_gfsbh.ShowText = "SH"; this.com_gfsbh.DrawHead = false; this.com_gfmc = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("aisinoMultiCombox4"); this.com_gfmc.IsSelectAll = true; this.com_gfmc.buttonStyle = 0; this.com_gfmc.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.com_gfmc.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.com_gfmc.Width - 140)); this.com_gfmc.ShowText = "MC"; this.com_gfmc.DrawHead = false; this.com_xfsbh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("aisinoMultiCombox3"); this.com_xfsbh.IsSelectAll = true; this.com_xfsbh.buttonStyle = 0; this.com_xfsbh.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.com_xfsbh.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.com_gfsbh.Width - 140)); this.com_xfsbh.ShowText = "SH"; this.com_xfsbh.DrawHead = false; this.com_xfmc = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("aisinoMultiCombox2"); this.com_xfmc.IsSelectAll = true; this.com_xfmc.buttonStyle = 0; this.com_xfmc.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.com_xfmc.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.com_gfmc.Width - 140)); this.com_xfmc.ShowText = "MC"; this.com_xfmc.DrawHead = false; this.com_gfsbh.AutoIndex = 2; this.com_gfsbh.OnButtonClick += new EventHandler(this.com_gf_DropDown); this.com_gfsbh.AutoComplate = (AutoComplateStyle)2; this.com_gfsbh.OnAutoComplate += (new EventHandler(this.com_gfsbh_OnAutoComplate)); this.com_gfsbh.OnSelectValue += (new EventHandler(this.com_gfsbh_OnSelectValue)); this.com_gfmc.AutoIndex = 2; this.com_gfmc.OnButtonClick += (new EventHandler(this.com_gf_DropDown)); this.com_gfmc.AutoComplate = (AutoComplateStyle)2; this.com_gfmc.OnAutoComplate += (new EventHandler(this.com_gfsbh_OnAutoComplate)); this.com_gfmc.OnSelectValue += (new EventHandler(this.com_gfsbh_OnSelectValue)); this.com_xfsbh.AutoIndex = 2; this.com_xfsbh.OnButtonClick += (new EventHandler(this.com_xf_DropDown)); this.com_xfsbh.AutoComplate = (AutoComplateStyle)2; this.com_xfsbh.OnAutoComplate += (new EventHandler(this.com_xfsbh_OnAutoComplate)); this.com_xfsbh.OnSelectValue += (new EventHandler(this.com_xfsbh_OnSelectValue)); this.com_xfmc.AutoIndex = 2; this.com_xfmc.OnButtonClick += (new EventHandler(this.com_xf_DropDown)); this.com_xfmc.AutoComplate = (AutoComplateStyle)2; this.com_xfmc.OnAutoComplate += (new EventHandler(this.com_xfsbh_OnAutoComplate)); this.com_xfmc.OnSelectValue += (new EventHandler(this.com_xfsbh_OnSelectValue)); this.com_xfmc.KeyPress += new KeyPressEventHandler(this.com_xfmc_KeyPress); this.com_xfmc.MaxLength = 100; this.com_gfmc.KeyPress += new KeyPressEventHandler(this.com_gfmc_KeyPress); this.com_gfmc.MaxLength = 100; this.com_xfsbh.KeyPress += new KeyPressEventHandler(this.com_xfsbh_KeyPress); this.com_xfsbh.MaxLength = 20; this.com_gfsbh.KeyPress += new KeyPressEventHandler(this.com_gfsbh_KeyPress); this.com_gfsbh.MaxLength = 20; this.text_sqdh.KeyPress += new KeyPressEventHandler(this.text_sqdh_KeyPress); this.text_sqdh.MaxLength = 0x18; this.but_close.Click += new EventHandler(this.but_close_Click); this.but_ok.Click += new EventHandler(this.but_ok_Click); this.but_zhuhechaxun.Click += new EventHandler(this.but_zhuhechaxun_Click); }
private void Initialize() { this.InitializeComponent(); this.tool_close = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_close"); this.tool_zuofei = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_zuofei"); this.tool_zuofei.CheckOnClick = false; this.tool_kehu = this.xmlComponentLoader1.GetControlByName <ToolStripDropDownButton>("tool_kehu"); this.tool_autokh = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_autokh"); this.tool_manukh = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_manukh"); this.tool_fanlan = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_fanlan"); this.tool_zjkj = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_zjkj"); this.tool_DaoRuHZTZD = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_DaoRuHZTZD"); this.tool_drgp = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_drgp"); this.tool_fushu = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_fushu"); this.tool_fushu1 = this.xmlComponentLoader1.GetControlByName <ToolStripDropDownButton>("tool_fushu1"); this.tool_fushu1.Visible = false; this.tool_import = this.xmlComponentLoader1.GetControlByName <ToolStripDropDownButton>("tool_import"); this.tool_imputSet = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_imputSet"); this.tool_manualImport = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_manualImport"); this.tool_autoImport = this.xmlComponentLoader1.GetControlByName <ToolStripMenuItem>("tool_autoImport"); this.tool_print = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_print"); this.tool_fuzhi = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_fuzhi"); this.tool_dkdr = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_dkdr"); this.tool_dkdjdr = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_dkdjdr"); this.tool_chae = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_chae"); this.lab_title = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_title"); this.lab_fpdm = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_fpdm"); this.lab_kprq = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_kprq"); this.lab_fphm = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_fphm"); this.lab_yplx = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_yplx"); this.lab_yplx.Visible = false; this.lblDq = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lbl_Dq"); this.com_yplx = this.xmlComponentLoader1.GetControlByName <AisinoCMB>("com_yplx"); this.com_gfsbh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_gfsbh"); this.com_gfmc = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_gfmc"); this.com_gfdzdh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_gfdzdh"); this.com_gfzh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_gfzh"); this.lab_hj_se = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_hj_se"); this.lab_hj_je = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_hj_je"); this.lab_hj_jshj = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_hj_jshj"); this.lab_hj_jshj_dx = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_hj_jshj_dx"); this.txt_bz = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_bz"); this.com_xfsbh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("lab_xfsbh"); this.com_xfmc = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("lab_xfmc"); this.com_xfzh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_xfzh"); this.com_xfdzdh = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("lab_xfdzdh"); this.lab_kp = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_kp"); this.com_fhr = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_fhr"); this.com_fhr.IsSelectAll = true; this.com_fhr.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "YH", this.com_fhr.Width)); this.com_fhr.DrawHead = false; this.com_skr = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("com_skr"); this.com_skr.IsSelectAll = true; this.com_skr.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "YH", this.com_skr.Width)); this.com_skr.DrawHead = false; this.qingdanButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_qingdan"); this.addRowButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_addrow"); this.delRowButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_delrow"); this.zhekouButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_zhekou"); this._DataGridView = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("DataGrid1"); this.statisticButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_tongji"); this.hsjbzButton = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("bt_jg"); this.mainPanel = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("panel_main"); this.YD_checkBox = this.xmlComponentLoader1.GetControlByName <CheckBox>("YD_checkBox"); this.lblJYM = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblJYM"); this.lblJYM.Visible = false; this.lblNCP = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblNCP"); this.lblNCP.Visible = false; this.statisticButton.Visible = false; this.hsjbzButton.CheckOnClick = true; this.com_gfdzdh.IsSelectAll = true; this.com_gfdzdh.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "YHZH", this.com_gfdzdh.Width)); this.com_gfdzdh.DrawHead = false; this.com_yplx.DropDownStyle = ComboBoxStyle.DropDownList; object[] items = new object[] { "(石脑油)", "(石脑油DDZG)", "(燃料油)", "(燃料油DDZG)" }; this.com_yplx.Items.AddRange(items); this.com_yplx.Visible = false; this.txt_bz.AcceptsTab = false; this.txt_bz.AcceptsReturn = true; this.txt_bz.ScrollBars = ScrollBars.Vertical; this.com_gfmc.Edit = 0; this.com_gfsbh.Edit = 0; this.com_gfdzdh.Edit = 0; this.com_gfzh.Edit = 0; this.com_xfmc.Edit = 0; this.com_xfsbh.Edit = 0; this.com_xfdzdh.Edit = 0; this.com_xfzh.Edit = 0; this.tool_print.Click += new EventHandler(this.tool_print_Click); this.tool_zuofei.Click += new EventHandler(this.tool_zuofei_Click); this.hsjbzButton.Click += new EventHandler(this.hsjbzButton_Click); this.qingdanButton.Click += new EventHandler(this.qingdanButton_Click); this.tool_close.Click += new EventHandler(this.tool_close_Click); this.qingdanButton.ToolTipText = "销货清单"; this.statisticButton.Click += new EventHandler(this.statistic_Click); this.tool_print.ToolTipText = "发票打印"; this.toolStrip3 = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip3"); ControlStyleUtil.SetToolStripStyle(this.toolStrip3); this._DataGridView.RowHeadersVisible = false; this._DataGridView.CellBorderStyle = DataGridViewCellBorderStyle.None; this._DataGridView.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; this._DataGridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; this.panel2 = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("panel2"); this.panel1 = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("panel1"); this.picZuofei = this.xmlComponentLoader1.GetControlByName <AisinoPIC>("picZuofei"); this.picZuofei.BackColor = Color.Transparent; this.picZuofei.SizeMode = PictureBoxSizeMode.Zoom; this.picZuofei.Visible = false; this.panel1.BackgroundImage = Resources.ZY; this.panel1.BackgroundImageLayout = ImageLayout.Zoom; this.panel2.AutoScroll = true; this.panel2.AutoScrollMinSize = new Size(0x3c4, 650); this.tool_close.Margin = new Padding(20, 1, 0, 2); }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(BMFYXM_Edit)); this.textBoxSJBM = new TextBoxTreeView(); this.label1 = new AisinoLBL(); this.toolStripBtnContinue = new ToolStripButton(); this.toolStripBtnCancel = new ToolStripButton(); this.toolStrip1 = new ToolStrip(); this.toolStripBtnSave = new ToolStripButton(); this.label2 = new AisinoLBL(); this.label8 = new AisinoLBL(); this.textBoxWaitMC = new TextBoxWait(); this.label10 = new AisinoLBL(); this.textBoxJM = new AisinoTXT(); this.textBoxBM = new AisinoTXT(); this.comBoxSPFL = new AisinoMultiCombox(); this.aisinoLBL2 = new AisinoLBL(); this.comboBoxYHZC = new AisinoCMB(); this.aisinoLBL1 = new AisinoLBL(); this.aisinoLBL3 = new AisinoLBL(); this.SPFLMC = new AisinoTXT(); this.aisinoLBL4 = new AisinoLBL(); this.comboBoxYHZCMC = new AisinoCMB(); this.toolStrip1.SuspendLayout(); base.SuspendLayout(); this.textBoxSJBM.BackColor = SystemColors.Window; this.textBoxSJBM.BorderStyle = BorderStyle.FixedSingle; this.textBoxSJBM.Cursor = Cursors.Arrow; this.textBoxSJBM.Location = new Point(0x53, 0x2c); this.textBoxSJBM.Name = "textBoxSJBM"; this.textBoxSJBM.ReadOnly = true; this.textBoxSJBM.RootNodeString = "根节点"; this.textBoxSJBM.SelectBM = null; this.textBoxSJBM.Size = new Size(0xc6, 0x15); this.textBoxSJBM.TabIndex = 60; this.textBoxSJBM.Text = "下拉树"; this.label1.AutoSize = true; this.label1.Location = new Point(0x24, 0x4e); this.label1.Name = "label1"; this.label1.Size = new Size(0x23, 12); this.label1.TabIndex = 0x38; this.label1.Text = "*编码"; this.toolStripBtnContinue.ImageTransparentColor = Color.Magenta; this.toolStripBtnContinue.Name = "toolStripBtnContinue"; this.toolStripBtnContinue.Size = new Size(60, 0x18); this.toolStripBtnContinue.Text = "保存继续"; this.toolStripBtnCancel.Image = Resources.取消; this.toolStripBtnCancel.ImageTransparentColor = Color.Magenta; this.toolStripBtnCancel.Name = "toolStripBtnCancel"; this.toolStripBtnCancel.Size = new Size(0x34, 0x18); this.toolStripBtnCancel.Text = "取消"; this.toolStrip1.AutoSize = false; this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripBtnSave, this.toolStripBtnCancel, this.toolStripBtnContinue }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(0x265, 0x1b); this.toolStrip1.TabIndex = 0x3b; this.toolStrip1.Text = "toolStrip1"; this.toolStripBtnSave.Image = Resources.保存; this.toolStripBtnSave.ImageTransparentColor = Color.Magenta; this.toolStripBtnSave.Name = "toolStripBtnSave"; this.toolStripBtnSave.Size = new Size(0x34, 0x18); this.toolStripBtnSave.Text = "保存"; this.label2.AutoSize = true; this.label2.Location = new Point(0x13c, 0x30); this.label2.Name = "label2"; this.label2.Size = new Size(0x3b, 12); this.label2.TabIndex = 0x39; this.label2.Text = "*费用名称"; this.label8.AutoSize = true; this.label8.Location = new Point(12, 0x30); this.label8.Name = "label8"; this.label8.Size = new Size(0x3b, 12); this.label8.TabIndex = 0x37; this.label8.Text = " 上级编码"; this.textBoxWaitMC.BorderStyle = BorderStyle.FixedSingle; this.textBoxWaitMC.FontWater = new Font("微软雅黑", 8f, FontStyle.Italic); this.textBoxWaitMC.Location = new Point(0x183, 0x2c); this.textBoxWaitMC.Name = "textBoxWaitMC"; this.textBoxWaitMC.Size = new Size(0xc6, 0x15); this.textBoxWaitMC.TabIndex = 0x35; this.textBoxWaitMC.WaitMilliSeconds = 0x3e8; this.textBoxWaitMC.WaterMarkString = "水印文字"; this.label10.AutoSize = true; this.label10.Location = new Point(0x2a, 0x6c); this.label10.Name = "label10"; this.label10.Size = new Size(0x1d, 12); this.label10.TabIndex = 0x3a; this.label10.Text = "简码"; this.textBoxJM.BorderStyle = BorderStyle.FixedSingle; this.textBoxJM.Location = new Point(0x53, 0x68); this.textBoxJM.Name = "textBoxJM"; this.textBoxJM.Size = new Size(0xc6, 0x15); this.textBoxJM.TabIndex = 0x36; this.textBoxBM.BorderStyle = BorderStyle.FixedSingle; this.textBoxBM.Location = new Point(0x53, 0x4a); this.textBoxBM.Name = "textBoxBM"; this.textBoxBM.Size = new Size(0xc6, 0x15); this.textBoxBM.TabIndex = 0x34; this.comBoxSPFL.AutoComplate = AutoComplateStyle.None; this.comBoxSPFL.AutoIndex = 1; this.comBoxSPFL.BorderColor = SystemColors.WindowFrame; this.comBoxSPFL.BorderStyle = AisinoComboxBorderStyle.System; this.comBoxSPFL.ButtonAutoHide = false; this.comBoxSPFL.buttonStyle = ButtonStyle.Button; this.comBoxSPFL.DataSource = null; this.comBoxSPFL.DrawHead = false; this.comBoxSPFL.Edit = EditStyle.TextBox; this.comBoxSPFL.ForeColor = Color.Maroon; this.comBoxSPFL.IsSelectAll = true; this.comBoxSPFL.Location = new Point(0x183, 0x4a); this.comBoxSPFL.MaxIndex = 8; this.comBoxSPFL.MaxLength = 0x7fff; this.comBoxSPFL.Name = "comBoxSPFL"; this.comBoxSPFL.ReadOnly = false; this.comBoxSPFL.SelectedIndex = -1; this.comBoxSPFL.SelectionStart = 0; this.comBoxSPFL.ShowText = ""; this.comBoxSPFL.Size = new Size(0xc6, 0x15); this.comBoxSPFL.TabIndex = 0xc6; this.comBoxSPFL.UnderLineColor = Color.White; this.comBoxSPFL.UnderLineStyle = AisinoComboxBorderStyle.None; this.aisinoLBL2.AutoSize = true; this.aisinoLBL2.Location = new Point(3, 0x8b); this.aisinoLBL2.Name = "aisinoLBL2"; this.aisinoLBL2.Size = new Size(0x4d, 12); this.aisinoLBL2.TabIndex = 0xc4; this.aisinoLBL2.Text = "享受优惠政策"; this.comboBoxYHZC.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBoxYHZC.FormattingEnabled = true; this.comboBoxYHZC.Items.AddRange(new object[] { "是", "否" }); this.comboBoxYHZC.Location = new Point(0x55, 0x87); this.comboBoxYHZC.Name = "comboBoxYHZC"; this.comboBoxYHZC.Size = new Size(0x57, 20); this.comboBoxYHZC.TabIndex = 0xc3; this.comboBoxYHZC.SelectedIndexChanged += new EventHandler(this.comboBoxYHZC_SelectedIndexChanged); this.aisinoLBL1.AutoSize = true; this.aisinoLBL1.Location = new Point(0x12a, 0x4e); this.aisinoLBL1.Name = "aisinoLBL1"; this.aisinoLBL1.Size = new Size(0x53, 12); this.aisinoLBL1.TabIndex = 0xc5; this.aisinoLBL1.Text = "*税收分类编码"; this.aisinoLBL3.AutoSize = true; this.aisinoLBL3.Location = new Point(0x12d, 0x6c); this.aisinoLBL3.Name = "aisinoLBL3"; this.aisinoLBL3.Size = new Size(0x4d, 12); this.aisinoLBL3.TabIndex = 200; this.aisinoLBL3.Text = "税收分类名称"; this.SPFLMC.BorderStyle = BorderStyle.FixedSingle; this.SPFLMC.Enabled = false; this.SPFLMC.Location = new Point(0x184, 0x67); this.SPFLMC.Name = "SPFLMC"; this.SPFLMC.Size = new Size(0xc6, 0x15); this.SPFLMC.TabIndex = 0xc7; this.aisinoLBL4.AutoSize = true; this.aisinoLBL4.Location = new Point(300, 140); this.aisinoLBL4.Name = "aisinoLBL4"; this.aisinoLBL4.Size = new Size(0x4d, 12); this.aisinoLBL4.TabIndex = 0xca; this.aisinoLBL4.Text = "优惠政策类型"; this.comboBoxYHZCMC.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBoxYHZCMC.FormattingEnabled = true; this.comboBoxYHZCMC.Items.AddRange(new object[] { "是", "否" }); this.comboBoxYHZCMC.Location = new Point(0x184, 0x88); this.comboBoxYHZCMC.Name = "comboBoxYHZCMC"; this.comboBoxYHZCMC.Size = new Size(0xc5, 20); this.comboBoxYHZCMC.TabIndex = 0xc9; base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.AutoSizeMode = AutoSizeMode.GrowAndShrink; base.ClientSize = new Size(0x265, 0xa9); base.Controls.Add(this.aisinoLBL4); base.Controls.Add(this.comboBoxYHZCMC); base.Controls.Add(this.aisinoLBL3); base.Controls.Add(this.SPFLMC); base.Controls.Add(this.comBoxSPFL); base.Controls.Add(this.aisinoLBL2); base.Controls.Add(this.comboBoxYHZC); base.Controls.Add(this.aisinoLBL1); base.Controls.Add(this.textBoxSJBM); base.Controls.Add(this.label1); base.Controls.Add(this.toolStrip1); base.Controls.Add(this.label2); base.Controls.Add(this.label8); base.Controls.Add(this.textBoxWaitMC); base.Controls.Add(this.label10); base.Controls.Add(this.textBoxJM); base.Controls.Add(this.textBoxBM); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Icon = (Icon)manager.GetObject("$this.Icon"); base.MaximizeBox = false; this.MaximumSize = new Size(700, 400); base.MinimizeBox = false; base.Name = "BMFYXM_Edit"; this.Text = "BMFYXM_Edit"; base.Load += new EventHandler(this.BMFYXM_Edit_Load); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void Initialize() { this.InitializeComponent(); this.toolStrip = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip"); this.tool_Close = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Close"); this.tool_Print = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Print"); this.tool_Edit = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Edit"); this.tool_Price = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Price"); this.tool_RowAdd = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_RowAdd"); this.tool_RowDelete = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_RowDelete"); this.lbl_Title = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblTitle"); this.lbl_Date = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblDate"); this.lbl_JBR = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblJBR"); this.lbl_No = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblNo"); this.mcmb_CarrierName = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbCarrierName"); this.mcmb_CarrierNumber = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbCarrierNumber"); this.mcmb_DraweeName = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbDraweeName"); this.mcmb_DraweeNumber = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbDraweeNumber"); this.mcmb_ReceiverName = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbReceiverName"); this.mcmb_ReceiverNumber = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbReceiverNumber"); this.mcmb_ShipperName = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbShipperName"); this.mcmb_ShipperNumber = this.xmlComponentLoader1.GetControlByName <AisinoMultiCombox>("mcmbShipperNumber"); this.csdg_Item = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("csdgItem"); this.rtxt_Cargo = this.xmlComponentLoader1.GetControlByName <AisinoRTX>("rtxtCargo"); this.lbl_Price = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblPrice"); this.cmb_Rate = this.xmlComponentLoader1.GetControlByName <AisinoCMB>("cmbRate"); this.lbl_Tax = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblTax"); this.lbl_Machine = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblMachine"); this.txt_CargoNumber = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtCargoNumber"); this.txt_CargoLoad = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtCargoLoad"); this.pnl_Reason = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("pnlReason"); this.rbt_Drawee = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtDrawee"); this.rbt_Deduated = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtDeduated"); this.rbt_NotDeduated = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtNotDeduated"); this.rbt_NDReason1 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtNDReason1"); this.rbt_NDReason2 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtNDReason2"); this.rbt_NDReason3 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtNDReason3"); this.rbt_NDReason4 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtNDReason4"); this.rbt_Carrier = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtCarrier"); this.rbt_CReason1 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtCReason1"); this.rbt_CReason2 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtCReason2"); this.pnl_ReasonOverDate = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("pnlReasonOverDate"); this.rbt_OverDateReason1 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason1"); this.rbt_OverDateReason2 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason2"); this.rbt_OverDateReason3 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason3"); this.rbt_OverDateReason4 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason4"); this.rbt_OverDateReason5 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason5"); this.rbt_OverDateReason6 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason6"); this.rbt_OverDateReason7 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason7"); this.rbt_OverDateReason8 = this.xmlComponentLoader1.GetControlByName <AisinoRDO>("rbtOverDateReason8"); this.lbl_BlueInveType = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblBlueInveType"); this.lbl_BlueInveNumber = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblBlueInveNumber"); this.lbl_BlueInveCode = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblBlueInveCode"); this.tool_Close.Margin = new Padding(20, 1, 0, 2); ControlStyleUtil.SetToolStripStyle(this.toolStrip); this.mcmb_DraweeNumber.IsSelectAll = (true); this.mcmb_DraweeNumber.buttonStyle = (0); this.mcmb_DraweeNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_DraweeNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_DraweeNumber.Width - 140)); this.mcmb_DraweeNumber.ShowText = ("SH"); this.mcmb_DraweeNumber.DrawHead = (false); this.mcmb_DraweeName.IsSelectAll = (true); this.mcmb_DraweeName.buttonStyle = (0); this.mcmb_DraweeName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_DraweeName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_DraweeName.Width - 140)); this.mcmb_DraweeName.ShowText = ("MC"); this.mcmb_DraweeName.DrawHead = (false); this.mcmb_CarrierNumber.IsSelectAll = (true); this.mcmb_CarrierNumber.buttonStyle = (0); this.mcmb_CarrierNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_CarrierNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_CarrierNumber.Width - 140)); this.mcmb_CarrierNumber.ShowText = ("SH"); this.mcmb_CarrierNumber.DrawHead = (false); this.mcmb_CarrierName.IsSelectAll = (true); this.mcmb_CarrierName.buttonStyle = (0); this.mcmb_CarrierName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_CarrierName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_CarrierName.Width - 140)); this.mcmb_CarrierName.ShowText = ("MC"); this.mcmb_CarrierName.DrawHead = (false); this.mcmb_ReceiverNumber.IsSelectAll = (true); this.mcmb_ReceiverNumber.buttonStyle = (0); this.mcmb_ReceiverNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_ReceiverNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_ReceiverNumber.Width - 140)); this.mcmb_ReceiverNumber.ShowText = ("SH"); this.mcmb_ReceiverNumber.DrawHead = (false); this.mcmb_ReceiverName.IsSelectAll = (true); this.mcmb_ReceiverName.buttonStyle = (0); this.mcmb_ReceiverName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_ReceiverName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_ReceiverName.Width - 140)); this.mcmb_ReceiverName.ShowText = ("MC"); this.mcmb_ReceiverName.DrawHead = (false); this.mcmb_ShipperNumber.IsSelectAll = (true); this.mcmb_ShipperNumber.buttonStyle = (0); this.mcmb_ShipperNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_ShipperNumber.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_ShipperNumber.Width - 140)); this.mcmb_ShipperNumber.ShowText = ("SH"); this.mcmb_ShipperNumber.DrawHead = (false); this.mcmb_ShipperName.IsSelectAll = (true); this.mcmb_ShipperName.buttonStyle = (0); this.mcmb_ShipperName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "SH", 140)); this.mcmb_ShipperName.Columns.Add(new AisinoMultiCombox.AisinoComboxColumn("", "MC", this.mcmb_ShipperName.Width - 140)); this.mcmb_ShipperName.ShowText = ("MC"); this.mcmb_ShipperName.DrawHead = (false); this.csdg_Item.AllowUserToAddRows = false; this.csdg_Item.AllowUserToDeleteRows = false; this.csdg_Item.AllowUserToResizeRows = (false); this.csdg_Item.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; this.csdg_Item.GridStyle = ((CustomStyle)1); this.pnl_Reason.Visible = false; this.pnl_ReasonOverDate.Visible = true; this.rbt_Drawee.Enabled = false; this.rbt_Deduated.Enabled = false; this.rbt_NotDeduated.Enabled = false; this.rbt_NDReason1.Enabled = false; this.rbt_NDReason2.Enabled = false; this.rbt_NDReason3.Enabled = false; this.rbt_NDReason4.Enabled = false; this.rbt_Carrier.Enabled = false; this.rbt_CReason1.Enabled = false; this.rbt_CReason2.Enabled = false; }
private void InitializeComponent() { this.dataGridView1 = new DataGridView(); this.SPMC = new DataGridViewTextBoxColumn(); this.FLBM = new DataGridViewTextBoxColumn(); this.XSYH = new DataGridViewTextBoxColumn(); this.YHZC = new DataGridViewTextBoxColumn(); this.SLV = new DataGridViewTextBoxColumn(); this._spmcBt = new AisinoMultiCombox(); this.XSYH_com = new ComboBox(); this.YHZC_com = new ComboBox(); this.label1 = new Label(); this.button1 = new AisinoButton(); this.button2 = new AisinoButton(); ((ISupportInitialize)this.dataGridView1).BeginInit(); base.SuspendLayout(); this.dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; DataGridViewColumn[] dataGridViewColumns = new DataGridViewColumn[] { this.SPMC, this.FLBM, this.XSYH, this.YHZC, this.SLV }; this.dataGridView1.Columns.AddRange(dataGridViewColumns); this.dataGridView1.Location = new Point(13, 0x4a); this.dataGridView1.Margin = new Padding(3, 4, 3, 4); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.RowTemplate.Height = 0x17; this.dataGridView1.Size = new Size(0x292, 0x170); this.dataGridView1.TabIndex = 0; this.dataGridView1.CurrentCellChanged += new EventHandler(this.dataGridView1_CurrentCellChanged); this.SPMC.HeaderText = "名称"; this.SPMC.Name = "SPMC"; this.SPMC.Width = 130; this.FLBM.HeaderText = "税收分类编码"; this.FLBM.Name = "FLBM"; this.FLBM.Width = 170; this.XSYH.HeaderText = "是否享受优惠政策"; this.XSYH.Name = "XSYH"; this.XSYH.Width = 130; this.YHZC.HeaderText = "优惠政策"; this.YHZC.Name = "YHZC"; this.YHZC.Width = 130; this.SLV.HeaderText = "税率"; this.SLV.Name = "SLV"; this.SLV.Width = 0x37; this._spmcBt.AutoComplate = 0; this._spmcBt.AutoIndex = 1; this._spmcBt.BorderColor = Color.Transparent; this._spmcBt.BorderStyle = AisinoComboxBorderStyle.System; this._spmcBt.ButtonAutoHide = true; this._spmcBt.buttonStyle = ButtonStyle.Select; this._spmcBt.DataSource = null; this._spmcBt.DrawHead = true; this._spmcBt.Edit = EditStyle.TextBox; this._spmcBt.IsSelectAll = false; this._spmcBt.Location = new Point(0, 0); this._spmcBt.MaxIndex = 8; this._spmcBt.MaxLength = 0x7fff; this._spmcBt.Name = "_spmcBt"; this._spmcBt.ReadOnly = false; this._spmcBt.SelectedIndex = -1; this._spmcBt.SelectionStart = 0; this._spmcBt.ShowText = ""; this._spmcBt.Size = new Size(0x7a, 0x15); this._spmcBt.TabIndex = 0; this._spmcBt.UnderLineColor = Color.Transparent; this._spmcBt.UnderLineStyle = 0; this.XSYH_com.Location = new Point(0, 0); this.XSYH_com.Name = "XSYH_com"; this.XSYH_com.Size = new Size(0x79, 20); this.XSYH_com.TabIndex = 0; this.YHZC_com.Location = new Point(0, 0); this.YHZC_com.Name = "YHZC_com"; this.YHZC_com.Size = new Size(0x79, 20); this.YHZC_com.TabIndex = 0; this.label1.AutoSize = true; this.label1.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86); this.label1.Location = new Point(13, 0x18); this.label1.MaximumSize = new Size(550, 0); this.label1.Name = "label1"; this.label1.Size = new Size(0x20c, 0x11); this.label1.TabIndex = 1; this.label1.Text = "正在复制含有无税收分类编码信息的发票!以下明细没有添加税收分类编码,请先设置分类编码。"; this.button1.BackColorActive = Color.FromArgb(0x19, 0x76, 210); this.button1.ColorDefaultA = Color.FromArgb(0, 0xac, 0xfb); this.button1.ColorDefaultB = Color.FromArgb(0, 0x91, 0xe0); this.button1.Font = new Font("宋体", 9f); this.button1.FontColor = Color.FromArgb(0xff, 0xff, 0xff); this.button1.Imagesize = 0x19; this.button1.Location = new Point(0x254, 12); this.button1.Name = "button1"; this.button1.Size = new Size(0x4b, 0x17); this.button1.TabIndex = 2; this.button1.Text = "确定"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new EventHandler(this.button1_Click); this.button2.BackColorActive = Color.FromArgb(0x19, 0x76, 210); this.button2.ColorDefaultA = Color.FromArgb(0, 0xac, 0xfb); this.button2.ColorDefaultB = Color.FromArgb(0, 0x91, 0xe0); this.button2.Font = new Font("宋体", 9f); this.button2.FontColor = Color.FromArgb(0xff, 0xff, 0xff); this.button2.Imagesize = 0x19; this.button2.Location = new Point(0x254, 0x2c); this.button2.Name = "button2"; this.button2.Size = new Size(0x4b, 0x17); this.button2.TabIndex = 3; this.button2.Text = "取消"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new EventHandler(this.button2_Click); base.AutoScaleDimensions = new SizeF(7f, 17f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x2ac, 0x1c1); base.Controls.Add(this.button2); base.Controls.Add(this.button1); base.Controls.Add(this.label1); base.Controls.Add(this.dataGridView1); this.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86); base.Margin = new Padding(3, 4, 3, 4); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "Add_SPFLBM"; this.Text = "批量添加税收分类编码"; base.Load += new EventHandler(this.Add_SPFLBM_Load); ((ISupportInitialize)this.dataGridView1).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void dataGridView1_CurrentCellChanged(object sender, EventArgs e) { if (this.dataGridView1.CurrentCell != null) { AisinoMultiCombox combox = this.dataGridView1.Controls["_spmcBt"] as AisinoMultiCombox; ComboBox box = this.dataGridView1.Controls["YHZC_com"] as ComboBox; ComboBox box2 = this.dataGridView1.Controls["XSYH_com"] as ComboBox; int rowIndex = this.dataGridView1.CurrentCell.RowIndex; string str = ""; string slv = (this.dataGridView1.Rows[rowIndex].Cells["SLV"].Value == null) ? "" : this.dataGridView1.Rows[rowIndex].Cells["SLV"].Value.ToString(); str = ((this.dataGridView1.Rows[rowIndex].Cells["SPMC"].Value == null) ? "" : this.dataGridView1.Rows[rowIndex].Cells["SPMC"].Value.ToString()) + "#%" + slv; if (rowIndex >= 0) { DataGridViewColumn owningColumn = this.dataGridView1.CurrentCell.OwningColumn; if (owningColumn.Name.Equals("FLBM")) { int index = owningColumn.Index; int num3 = this.dataGridView1.CurrentCell.RowIndex; Rectangle rectangle = this.dataGridView1.GetCellDisplayRectangle(index, num3, false); combox.Left = rectangle.Left; combox.Top = rectangle.Top; combox.Width = rectangle.Width; combox.Height = rectangle.Height; combox.Visible = true; if (this.spxxmap[str].flbm != "") { this._spmcBt.Text = this.spxxmap[str].flbm; } else { this._spmcBt.Text = ""; } } else { combox.Visible = false; } if (owningColumn.Name.Equals("XSYH")) { int columnIndex = owningColumn.Index; int num5 = this.dataGridView1.CurrentCell.RowIndex; Rectangle rectangle2 = this.dataGridView1.GetCellDisplayRectangle(columnIndex, num5, false); box2.Left = rectangle2.Left; box2.Top = rectangle2.Top; box2.Width = rectangle2.Width; box2.Height = rectangle2.Height; box2.Visible = true; box2.Text = this.dataGridView1.CurrentCell.Value.ToString(); if (this.spxxmap[str].xsyh) { box2.SelectedIndex = 0; } else { box2.SelectedIndex = 1; } if (this.spxxmap[str].xsyh_canuse) { box2.Enabled = true; } else { box2.Enabled = false; } } else { box2.Visible = false; } if (owningColumn.Name.Equals("YHZC")) { int num6 = owningColumn.Index; int num7 = this.dataGridView1.CurrentCell.RowIndex; Rectangle rectangle3 = this.dataGridView1.GetCellDisplayRectangle(num6, num7, false); box.Left = rectangle3.Left; box.Top = rectangle3.Top; box.Width = rectangle3.Width; box.Height = rectangle3.Height; box.Visible = true; if (this.spxxmap[str].xsyh) { box.Items.Clear(); object[] objArray1 = new object[] { this.spxxmap[str].flbm }; object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.Bmgl.GetSLV_BY_BM", objArray1); if ((objArray != null) && ((objArray[0] as DataTable).Rows.Count > 0)) { string[] separator = new string[] { "、", ",", "," }; string[] strArray = (objArray[0] as DataTable).Rows[0]["ZZSTSGL"].ToString().Split(separator, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < strArray.Length; i++) { if (this.yhzc_contain_slv(strArray[i], slv, false, this.isTsfp)) { this.YHZC_com.Items.Add(strArray[i]); } } } box.Text = this.spxxmap[str].yhzc; } else { box.Text = ""; box.Items.Clear(); } } else { box.Visible = false; } } } }