Пример #1
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.toolAdd.Click                += new EventHandler(this.btnAdd_Click);
     this.toolModify.Click             += new EventHandler(this.btnModify_Click);
     this.toolDel.Click                += new EventHandler(this.btnDel_Click);
     this.textBoxWaitKey.TextChanged   += new EventHandler(this.textBoxWaitKey_TextChanged);
     this.toolExport.Click             += new EventHandler(this.btnExport_Click);
     this.toolImport.Click             += new EventHandler(this.btnImport_Click);
     this.toolExit.Click               += new EventHandler(this.btnExit_Click);
     this.treeViewBM1.onClickAddFenLei += new TreeViewBM.OnClickAddFenLei(this.treeViewBM1_onClickAddFenLei);
     this.treeViewBM1.onClickAdd       += new TreeViewBM.OnClickAdd(this.treeViewBM1_onClickAdd);
     this.treeViewBM1.onClickZengWei   += new TreeViewBM.OnClickZengWei(this.treeViewBM1_onClickZengWei);
     this.treeViewBM1.onTreeNodeClick  += new TreeViewBM.OnTreeNodeClick(this.treeViewBM1_onTreeNodeClick);
     this.treeViewBM1.onClickModify    += new TreeViewBM.OnClickModify(this.treeViewBM1_onClickModify);
     this.treeViewBM1.onClickDelete    += new TreeViewBM.OnClickDelete(this.treeViewBM1_onClickDelete);
     this.treeViewBM1.onClickJianWei   += new TreeViewBM.OnClickJianWei(this.treeViewBM1_onClickJianWei);
     this.treeViewBM1.Focus();
     this.aisinoDataGrid1.ShowAllChkVisible = false;
     this.treeViewBM1.ChildText             = "增加***编码";
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.textBoxWaitKey.Paint            += new PaintEventHandler(this.textBoxWaitKey_Paint);
     this.aisinoDataGrid1.MultiSelect      = false;
     this.aisinoDataGrid1.AborCellPainting = true;
     this.aisinoDataGrid1.ReadOnly         = true;
     this.aisinoDataGrid1.DataGrid.AllowUserToDeleteRows = false;
     this.treeViewBM1.getListNodes += new TreeViewBM.GetListNodes(this.treeViewBM1_getListNodes);
     this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
     this.tool_GeShi.Enabled   = false;
     this.tool_ChaZhao.Enabled = false;
     this.tool_TongJi.Enabled  = false;
 }
Пример #2
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.btnModify       = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolModify");
     this.btnAdd          = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolAdd");
     this.btnDel          = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolDel");
     this.btnExport       = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolExport");
     this.btnImport       = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolImport");
     this.splitContainer1 = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.btnExit         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolExit");
     this.textBoxWaitKey  = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey");
     this.aisinoDataGrid1 = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1");
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.btnAdd.Click               += new EventHandler(this.btnAdd_Click);
     this.btnModify.Click            += new EventHandler(this.btnModify_Click);
     this.btnDel.Click               += new EventHandler(this.btnDel_Click);
     this.textBoxWaitKey.TextChanged += new EventHandler(this.textBoxWaitKey_TextChanged);
     this.btnExport.Click            += new EventHandler(this.btnExport_Click);
     this.btnImport.Click            += new EventHandler(this.btnImport_Click);
     this.textBoxWaitKey.ToolTipText  = "输入关键字(编码,名称)";
     this.toolSearchLbl               = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl");
     this.toolSearchLbl.Alignment     = ToolStripItemAlignment.Right;
     this.btnExit.Click              += new EventHandler(this.btnExit_Click);
     this.toolStrip1 = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.textBoxWaitKey.Paint             += new PaintEventHandler(this.textBoxWaitKey_Paint);
     this.textBoxWaitKey.Alignment          = ToolStripItemAlignment.Right;
     this.btnImport.Enabled                 = false;
     this.btnExport.Enabled                 = false;
     this.splitContainer1.Panel1Collapsed   = true;
     this.aisinoDataGrid1.ShowAllChkVisible = false;
 }
Пример #3
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.textBoxWaitKey                           = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey");
     this.btnQuery                                 = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.btnQuery.Visible                         = false;
     this.aisinoDataGrid1                          = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1");
     this.treeViewBM1                              = this.xmlComponentLoader1.GetControlByName <TreeViewBM>("treeViewBM1");
     this.splitContainer1                          = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.textBoxWaitKey.TextChanged              += new EventHandler(this.textBoxWaitKey_TextChanged);
     this.btnQuery.Click                          += new EventHandler(this.btnQuery_Click);
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.aisinoDataGrid1.DataGridRowKeyDown      += new KeyEventHandler(this.aisinoDataGrid1_DataGridRowKeyDown);
     this.aisinoDataGrid1.ShowAllChkVisible        = false;
     this.treeViewBM1.onTreeNodeClick             += new TreeViewBM.OnTreeNodeClick(this.treeViewBM1_onTreeNodeClick);
     this.textBoxWaitKey.ToolTipText               = "输入关键字(车辆编码,名称,厂牌型号,产地,生产厂家名称)";
     this.toolSearchLbl                            = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl");
     this.toolSearchLbl.Alignment                  = ToolStripItemAlignment.Right;
     this.toolStrip1                               = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.textBoxWaitKey.Paint    += new PaintEventHandler(this.textBoxWaitKey_Paint);
     this.textBoxWaitKey.Alignment = ToolStripItemAlignment.Right;
     this.splitContainer1          = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
 }
Пример #4
0
 public WSPZCXForm(FPLX fplx)
 {
     this.mfplx = fplx;
     this.InitializeComponent();
     this.btnQuery    = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.txtWspzh    = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtWspzh");
     this.txtXfsh     = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtXfsh");
     this.data_Jzrq   = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_Jzrq");
     this.data_Qsrq   = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_Qsrq");
     this.tool_select = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_select");
     this.tool_exit   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_exit");
     this.tool_Args   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Args");
     this.dgSwdk      = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("dgWspz");
     this.toolStrip1  = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.tool_exit.Click          += new EventHandler(this.BtnExit_Click);
     this.tool_select.Click        += new EventHandler(this.BtnSelect_Click);
     this.tool_Args.Click          += new EventHandler(this.BtnArgs_Click);
     this.btnQuery.Click           += new EventHandler(this.BtnSwdkFPFind_Click);
     this.dgSwdk.DoubleClick       += new EventHandler(this.BtnSelect_Click);
     this.txtWspzh.KeyPress        += new KeyPressEventHandler(this.txtWspzh_KeyPress);
     this.txtXfsh.KeyPress         += new KeyPressEventHandler(this.txtXfsh_KeyPress);
     this.txtWspzh.MaxLength        = 100;
     this.txtXfsh.MaxLength         = 20;
     this.dgSwdk.AllowUserToAddRows = false;
     this.dgSwdk.MultiSelect        = false;
     this.dgSwdk.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
     this.dgSwdk.ReadOnly           = true;
     this.SelectTimeBind();
     this.swdkFpLists = new List <SwdkFpxx>();
 }
Пример #5
0
 public StatisticsResult(DataTable dataTable_1)
 {
     this.InitializeComponent_1();
     this.customStyleDataGrid1.DataSource = dataTable_1;
     this.dataTable_0 = dataTable_1;
     this.method_1();
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
 }
Пример #6
0
 public InvoiceResultForm(QueryPrintEntity _queryPrintEntity)
 {
     this.Initial();
     ControlStyleUtil.SetToolStripStyle(this.toolStripMenu);
     this.toolStripButtonExit.Margin     = new Padding(20, 1, 0, 2);
     this.m_queryPrintEntity             = _queryPrintEntity;
     this.customStyleDataGridDetail.Dock = DockStyle.Fill;
     this.customStyleDataGridDetail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     this.customStyleDataGridDetail.set_ColumnHeadersHeightSizeMode(DataGridViewColumnHeadersHeightSizeMode.AutoSize);
     this.m_queryPrintBLL.MakeTable(ref this.customStyleDataGridDetail, _queryPrintEntity);
 }
Пример #7
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.toolStrip   = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     this.tool_xuanze = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_xuanze");
     this.tool_xiazai = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_xiazai");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip);
     this.aisinoGrid             = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoGrid");
     this.aisinoGrid.MultiSelect = (false);
     this.aisinoGrid.DataGrid.AllowUserToDeleteRows = false;
     this.tool_xuanze.Click                  += new EventHandler(this.tool_xuanze_Click);
     this.tool_xiazai.Click                  += new EventHandler(this.tool_xiazai_Click);
     this.contextMenuStrip                    = new ContextMenuStrip();
     this.aisinoGrid.GoToPageEvent           += (new EventHandler <GoToPageEventArgs>(this.aisinoGrid_GoToPageEvent));
     this.aisinoGrid.DataGridRowDbClickEvent += (new EventHandler <DataGridRowEventArgs>(this.aisinoGrid_DataGridRowDbClickEvent));
 }
Пример #8
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.toolStrip                     = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip");
     this.tool_Close                    = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Close");
     this.tool_Choose                   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Choose");
     this.tool_Default                  = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Default");
     this.tool_Insert                   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Insert");
     this.tool_Update                   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Update");
     this.tool_Delete                   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Delete");
     this.pnl_Edit                      = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("pnl_Edit");
     this.txt_Receiver                  = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_Receiver");
     this.txt_Cellphone                 = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_Cellphone");
     this.txt_Landline                  = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_Landline");
     this.txt_Postcode                  = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_Postcode");
     this.txt_Address                   = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_Address");
     this.rtxt_Memo                     = this.xmlComponentLoader1.GetControlByName <AisinoRTX>("rtxt_Memo");
     this.btn_InsertUpdate              = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btn_InsertUpdate");
     this.btn_Reset                     = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btn_Reset");
     this.btn_Indent                    = this.xmlComponentLoader1.GetControlByName <Button>("btn_Indent");
     this.csdgAddress                   = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("csdgList");
     this.tool_Close.Click             += new EventHandler(this.tool_Close_Click);
     this.tool_Choose.Click            += new EventHandler(this.tool_Choose_Click);
     this.tool_Default.Click           += new EventHandler(this.tool_Default_Click);
     this.tool_Insert.Click            += new EventHandler(this.tool_Insert_Click);
     this.tool_Update.Click            += new EventHandler(this.tool_Update_Click);
     this.tool_Delete.Click            += new EventHandler(this.tool_Delete_Click);
     this.btn_Indent.Click             += new EventHandler(this.btn_Indent_Click);
     this.btn_InsertUpdate.Click       += new EventHandler(this.btn_InsertUpdate_Click);
     this.btn_Reset.Click              += new EventHandler(this.btn_Reset_Click);
     this.txt_Receiver.TextChanged     += new EventHandler(this.txt_Receiver_TextChanged);
     this.txt_Cellphone.TextChanged    += new EventHandler(this.txt_Cellphone_TextChanged);
     this.txt_Landline.TextChanged     += new EventHandler(this.txt_Landline_TextChanged);
     this.txt_Postcode.TextChanged     += new EventHandler(this.txt_Postcode_TextChanged);
     this.txt_Address.TextChanged      += new EventHandler(this.txt_Address_TextChanged);
     this.rtxt_Memo.TextChanged        += new EventHandler(this.rtxt_Memo_TextChanged);
     this.txt_Receiver.KeyPress        += new KeyPressEventHandler(this.txt_Receiver_KeyPress);
     this.txt_Cellphone.KeyPress       += new KeyPressEventHandler(this.txt_Cellphone_KeyPress);
     this.txt_Landline.KeyPress        += new KeyPressEventHandler(this.txt_Landline_KeyPress);
     this.txt_Postcode.KeyPress        += new KeyPressEventHandler(this.txt_Postcode_KeyPress);
     this.txt_Address.KeyPress         += new KeyPressEventHandler(this.txt_Address_KeyPress);
     this.rtxt_Memo.KeyPress           += new KeyPressEventHandler(this.rtxt_Memo_KeyPress);
     this.csdgAddress.MouseDoubleClick += new MouseEventHandler(this.csdgAddress_MouseDoubleClick);
     this.tool_Close.Margin             = new Padding(20, 1, 0, 2);
     ControlStyleUtil.SetToolStripStyle(this.toolStrip);
     this.gridSetting();
 }
Пример #9
0
 private void RecoveryForm_Load(object sender, EventArgs e)
 {
     this.aisinoDataGrid1.MultiSelect           = false;
     this.aisinoDataGrid1.AborCellPainting      = true;
     this.aisinoDataGrid1.ReadOnly              = true;
     this.aisinoDataGrid1.AllowUserToDeleteRows = false;
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.toolStrip1.Height          = 0x24;
     this.label2.Text                = "备份数据库目录:";
     this.label3.Text                = this.BackupPath;
     this.toolStripBtnDBPath.Enabled = false;
     this.toolStripBtnDBFile.Enabled = false;
     new Thread(new ParameterizedThreadStart(this.DoWork))
     {
         IsBackground = true
     }.Start(this.BackupPath);
 }
Пример #10
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.toolStrip            = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip");
     this.tool_Close           = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Close");
     this.tool_Confirm         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Confirm");
     this.tool_Revoke          = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Revoke");
     this.csdgStatusVolumn     = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("csdgStatusVolumn");
     this.tool_Close.Click    += new EventHandler(this.tool_Close_Click);
     this.tool_Confirm.Click  += new EventHandler(this.tool_Confirm_Click);
     this.tool_Revoke.Click   += new EventHandler(this.tool_Revoke_Click);
     this.tool_Confirm.Visible = false;
     this.tool_Revoke.Visible  = false;
     this.tool_Close.Margin    = new Padding(20, 1, 0, 2);
     ControlStyleUtil.SetToolStripStyle(this.toolStrip);
     this.gridSetting();
 }
Пример #11
0
        public InvoiceReportForm()
        {
            this.Initial();
            this.customStyleDataGridDetail.Dock = DockStyle.Fill;
            ControlStyleUtil.SetToolStripStyle(this.toolStripMenu);
            this.toolStripButtonExit.Margin        = new Padding(20, 1, 0, 2);
            this.toolLabel_yuefen.Alignment        = ToolStripItemAlignment.Right;
            this.toolComboBox_yuefen.Alignment     = ToolStripItemAlignment.Right;
            this.toolComboBox_yuefen.DropDownStyle = ComboBoxStyle.DropDownList;
            this.m_dtCurrent = this.m_InvoiceReportBLL.GetDateTime();
            this.m_nYear     = this.m_dtCurrent.Year;
            this.m_nMonth    = this.m_dtCurrent.Month;
            object text = this.Text;

            this.Text = string.Concat(new object[] { text, "(", this.m_dtCurrent.Year, "年", this.m_dtCurrent.Month, "月)" });
            base.set_TabText(this.Text);
            this.InitialControl();
            this.InitDicData();
            this.RefreshData();
        }
Пример #12
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.FPZL        = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("FPZL");
     this.LBDM        = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("LBDM");
     this.QSHM        = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("QSHM");
     this.FPZS        = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("FPZS");
     this.XH          = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("XH");
     this.FPJ         = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("FPJ");
     this.tool_exit   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_exit");
     this.tool_select = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_select");
     this.toolStrip1  = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.FPJ.MultiSelect     = false;
     this.FPJ.SelectionMode   = DataGridViewSelectionMode.FullRowSelect;
     this.FPJ.RowHeadersWidth = 30;
     this.FPJ.ReadOnly        = true;
     this.tool_exit.Click    += new EventHandler(this.tool_exit_Click);
     this.tool_select.Click  += new EventHandler(this.tool_select_Click);
 }
Пример #13
0
 private void InitializeComponent()
 {
     base.Name = "BMSPFL";
     this.Text = "税收分类编码设置";
     base.treeViewBM1.RootNodeString                    = "税收分类编码";
     base.treeViewBM1.ChildText                         = "增加税收分类编码";
     base.textBoxWaitKey.ToolTipText                    = "输入关键字(税收分类编码,名称,说明,税率,增值税特殊管理,关键字)";
     base.toolAdd.Enabled                               = false;
     base.toolModify.Enabled                            = false;
     base.toolDel.Enabled                               = false;
     base.toolExport.Enabled                            = false;
     base.treeViewBM1.contextMenuStrip1.Enabled         = false;
     base.treeViewBM1.AddFLToolStripMenuItem.Visible    = false;
     base.treeViewBM1.ModifyFLToolStripMenuItem.Visible = false;
     base.treeViewBM1.UToolStripMenuItem.Visible        = false;
     base.treeViewBM1.VToolStripMenuItem.Visible        = false;
     base.treeViewBM1.WToolStripMenuItem.Visible        = false;
     base.treeViewBM1.toolStripSeparator1.Visible       = false;
     base.treeViewBM1.toolStripSeparator3.Visible       = false;
     this.toolUpdate = new ToolStripButton();
     this.toolStripSeparatorUpdate         = new ToolStripSeparator();
     this.toolUpdate.Image                 = Resources.导入;
     this.toolUpdate.ImageTransparentColor = Color.Magenta;
     this.toolUpdate.Name = "toolImport";
     this.toolUpdate.Size = new Size(0x34, 0x16);
     this.toolUpdate.Text = "更新";
     base.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripSeparatorUpdate, this.toolUpdate });
     this.toolUpdate.Click += new EventHandler(this.toolUpdate_Click);
     ControlStyleUtil.SetToolStripStyle(base.toolStrip1);
     this.toolHide = new ToolStripButton();
     this.toolStripSeparatorUpdate       = new ToolStripSeparator();
     this.toolHide.Image                 = Resources.修改;
     this.toolHide.ImageTransparentColor = Color.Magenta;
     this.toolHide.Name = "toolImport";
     this.toolHide.Size = new Size(0x34, 0x16);
     this.toolHide.Text = "隐藏";
     base.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripSeparatorUpdate, this.toolHide });
     this.toolHide.Click += new EventHandler(this.toolHide_Click);
     ControlStyleUtil.SetToolStripStyle(base.toolStrip1);
     base.aisinoDataGrid1.DataGridRowClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowClickEvent);
 }
Пример #14
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.toolStrip             = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip");
     this.tool_Close            = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Close");
     this.tool_Confirm          = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Confirm");
     this.tool_AddRow           = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_AddRow");
     this.tool_DeleteRow        = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_DeleteRow");
     this.btnConfirm            = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnConfirm");
     this.btnCancel             = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnCancel");
     this.confirmList           = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("csdgList");
     this.tool_Close.Click     += new EventHandler(this.tool_Close_Click);
     this.tool_Confirm.Click   += new EventHandler(this.tool_Confirm_Click);
     this.tool_AddRow.Click    += new EventHandler(this.tool_AddRow_Click);
     this.tool_DeleteRow.Click += new EventHandler(this.tool_DeleteRow_Click);
     this.btnConfirm.Click     += new EventHandler(this.btnConfirm_Click);
     this.btnCancel.Click      += new EventHandler(this.btnCancel_Click);
     this.confirmList.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(this.confirmList_EditingControlShowing);
     this.tool_Close.Margin = new Padding(20, 1, 0, 2);
     ControlStyleUtil.SetToolStripStyle(this.toolStrip);
     this.gridSetting();
 }
Пример #15
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.textBoxWaitKey                           = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey");
     this.btnQuery                                 = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.btnQuery.Visible                         = false;
     this.aisinoDataGrid1                          = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1");
     this.textBoxWaitKey.TextChanged              += new EventHandler(this.textBoxWaitKey_TextChanged);
     this.btnQuery.Click                          += new EventHandler(this.btnQuery_Click);
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.aisinoDataGrid1.DataGridRowKeyDown      += new KeyEventHandler(this.aisinoDataGrid1_DataGridRowKeyDown);
     this.aisinoDataGrid1.ShowAllChkVisible        = false;
     this.lblRowNum                                = this.xmlComponentLoader1.GetControlByName <ToolStripStatusLabel>("lblRowNum");
     this.textBoxWaitKey.ToolTipText               = "输入关键字(车辆种类代码,车辆大类名称,车辆种类名称)";
     this.toolSearchLbl                            = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl");
     this.toolSearchLbl.Alignment                  = ToolStripItemAlignment.Right;
     this.toolStrip1                               = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.textBoxWaitKey.Paint    += new PaintEventHandler(this.textBoxWaitKey_Paint);
     this.textBoxWaitKey.Alignment = ToolStripItemAlignment.Right;
 }
Пример #16
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.dataGridView1       = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("dataGridView1");
     this.lab_fpdm            = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_fpdm");
     this.lab_fphm            = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lab_fphm");
     this.tool_wancheng       = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_wancheng");
     this.tool_printqd        = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_printqd");
     this.tool_add            = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_add");
     this.tool_remove         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_remove");
     this.tool_zhekou         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_zhekouqd");
     this.tool_jg             = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_jiageqd");
     this.statusStrip1        = this.xmlComponentLoader1.GetControlByName <StatusStrip>("statusStrip1");
     this.tss_tip             = this.xmlComponentLoader1.GetControlByName <ToolStripStatusLabel>("tss_tip");
     this.tool_zhuanfp        = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_zhuanfp");
     this.toolStripSeparator1 = this.xmlComponentLoader1.GetControlByName <ToolStripSeparator>("toolStripSeparator1");
     this.toolStrip1          = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.tool_jg.CheckOnClick = true;
     this.tool_printqd.Enabled = false;
     this.tool_wancheng.Click += new EventHandler(this.tool_wancheng_Click);
     this.tool_printqd.Click  += new EventHandler(this.tool_printqd_Click);
     this.tool_zhuanfp.Click  += new EventHandler(this.tool_zhuanfp_Click);
 }
Пример #17
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.lblGfmc     = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblGfmc");
     this.txtgfmc     = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtgfmc");
     this.lblGfsh     = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblGfsh");
     this.txtgfsh     = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtgfsh");
     this.txtdjh      = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtdjh");
     this.btnQuery    = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.btnQueryAll = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQueryAll");
     this.dgDJ        = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("dgDj");
     this.tool_exit   = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_exit");
     this.tool_select = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_select");
     this.toolStrip1  = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.dgDJ.MultiSelect     = false;
     this.dgDJ.SelectionMode   = DataGridViewSelectionMode.FullRowSelect;
     this.dgDJ.RowHeadersWidth = 30;
     this.dgDJ.ReadOnly        = true;
     this.btnQuery.Click      += new EventHandler(this.btnQuery_Click);
     this.btnQueryAll.Click   += new EventHandler(this.btnQueryAll_Click);
     this.tool_exit.Click     += new EventHandler(this.tool_exit_Click);
     this.tool_select.Click   += new EventHandler(this.tool_select_Click);
 }
Пример #18
0
 protected void SetXmlCtrl()
 {
     try
     {
         this.pnlManipulation            = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("pnlManipulation");
         this.pnlAttention               = this.xmlComponentLoader1.GetControlByName <AisinoPNL>("pnlAttention");
         this.lblAttentionHeader         = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblAttentionHeader");
         this.lblAttentionDetail         = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblAttentionDetail");
         this.pnlAttention.Visible       = false;
         this.lblAttentionHeader.Visible = false;
         this.lblAttentionDetail.Visible = false;
         this.toolStrip                          = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
         this.tool_Close                         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_TuiChu");
         this.tool_XuanZe                        = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_XuanZe");
         this.tool_FPTuiHui                      = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_FPTuiHui");
         this.toolStripSeparator1                = this.xmlComponentLoader1.GetControlByName <ToolStripSeparator>("toolStripSeparator1");
         this.tool_Find                          = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Find");
         this.tool_Print                         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Print");
         this.tool_TongJi                        = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_TongJi");
         this.tool_GeShi                         = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_GeShi");
         this.toolLblRetrieve                    = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolLblRetrieve");
         this.toolLblFpzl                        = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolLblFpzl");
         this.toolLblYear                        = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolLblYear");
         this.toolLblMonth                       = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolLblMonth");
         this.toolTxtRetrieve                    = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("toolTxtRetrieve");
         this.toolCmbFpzl                        = this.xmlComponentLoader1.GetControlByName <ToolStripComboBox>("toolCmbFpzl");
         this.toolCmbYear                        = this.xmlComponentLoader1.GetControlByName <ToolStripComboBox>("toolCmbYear");
         this.toolCmbMonth                       = this.xmlComponentLoader1.GetControlByName <ToolStripComboBox>("toolCmbMonth");
         this.tool_Close.Visible                 = true;
         this.tool_XuanZe.Visible                = false;
         this.tool_FPTuiHui.Visible              = false;
         this.toolStripSeparator1.Visible        = true;
         this.tool_Find.Visible                  = true;
         this.tool_Print.Visible                 = true;
         this.tool_TongJi.Visible                = true;
         this.tool_GeShi.Visible                 = true;
         this.toolLblRetrieve.Visible            = false;
         this.toolTxtRetrieve.Visible            = false;
         this.tool_Close.Click                  += new EventHandler(this.tool_Close_Click);
         this.tool_Find.Click                   += new EventHandler(this.tool_Find_Click);
         this.tool_Print.Click                  += new EventHandler(this.tool_Print_Click);
         this.tool_TongJi.Click                 += new EventHandler(this.tool_TongJi_Click);
         this.tool_GeShi.Click                  += new EventHandler(this.tool_GeShi_Click);
         this.toolCmbFpzl.SelectedIndexChanged  += new EventHandler(this.QueryIndexChanged);
         this.toolCmbYear.SelectedIndexChanged  += new EventHandler(this.QueryIndexChanged);
         this.toolCmbMonth.SelectedIndexChanged += new EventHandler(this.QueryIndexChanged);
         this.toolCmbFpzl.DropDownStyle          = ComboBoxStyle.DropDownList;
         this.toolCmbYear.DropDownStyle          = ComboBoxStyle.DropDownList;
         this.toolCmbMonth.DropDownStyle         = ComboBoxStyle.DropDownList;
         this.tool_Close.Margin                  = new Padding(20, 1, 0, 2);
         ControlStyleUtil.SetToolStripStyle(this.toolStrip);
         this.QueryComponentsLayoutSet();
         this.customStyleDataGrid1 = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("customStyleDataGrid1");
         this.customStyleDataGrid1.AllowUserToDeleteRows = false;
         this.customStyleDataGrid1.AutoSizeColumnsMode   = DataGridViewAutoSizeColumnsMode.Fill;
         this.customStyleDataGrid1.ReadOnly      = true;
         this.customStyleDataGrid1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
         this.customStyleDataGrid1.MultiSelect   = false;
         this.InsertGridColumn();
         this._dictFPLBBM = ShareMethods.GetFPLBBM();
         this.pnlManipulation.Controls.Add(this.customStyleDataGrid1);
         this.pnlManipulation.Controls.Add(this.toolStrip);
         this.pnlManipulation.Controls.Add(this.pnlAttention);
     }
     catch (BaseException exception)
     {
         this._bError = true;
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this._bError = true;
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }
Пример #19
0
 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);
 }
Пример #20
0
        public QueryPubForm()
        {
            this.InitializeComponent();
            this.aisinoDataGrid1.GoToPageEvent           += aisinoDataGrid1_GoToPageEvent;
            this.aisinoDataGrid1.DataGridRowDbClickEvent += aisinoDataGrid1_DoubleClick;
            List <Dictionary <string, string> > list = new List <Dictionary <string, string> >();
            Dictionary <string, string>         item = new Dictionary <string, string>();

            item.Add("Type", "Text");
            item.Add("AisinoLBL", "接收时间");
            item.Add("Property", "JSSJ");
            item.Add("FillWeight", "100");
            list.Add(item);
            Dictionary <string, string> dictionary2 = new Dictionary <string, string>();

            dictionary2.Add("Type", "Text");
            dictionary2.Add("AisinoLBL", "类型");
            dictionary2.Add("Property", "LX");
            dictionary2.Add("FillWeight", "100");
            list.Add(dictionary2);
            Dictionary <string, string> dictionary3 = new Dictionary <string, string>();

            dictionary3.Add("Type", "Text");
            dictionary3.Add("AisinoLBL", "标题");
            dictionary3.Add("Property", "BT");
            dictionary3.Add("FillWeight", "300");
            list.Add(dictionary3);
            Dictionary <string, string> dictionary4 = new Dictionary <string, string>();

            dictionary4.Add("Type", "Text");
            dictionary4.Add("AisinoLBL", "内容");
            dictionary4.Add("Property", "NR");
            dictionary4.Add("FillWeight", "500");
            list.Add(dictionary4);
            Dictionary <string, string> dictionary5 = new Dictionary <string, string>();

            dictionary5.Add("Type", "Text");
            dictionary5.Add("AisinoLBL", "XH");
            dictionary5.Add("Property", "XH");
            dictionary5.Add("Width", "0");
            dictionary5.Add("Visible", "False");
            list.Add(dictionary5);
            this.aisinoDataGrid1.ColumeHead = list;
            this.aisinoDataGrid1.DataGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            this.aisinoDataGrid1.DataGrid.GridStyle           = CustomStyle.custom;
            this.aisinoDataGrid1.DataGrid.AllowUserToAddRows  = false;
            this.aisinoDataGrid1.DataGrid.ReadOnly            = true;
            ToolStripControlHost host = new ToolStripControlHost(this.enddt)
            {
                Alignment = ToolStripItemAlignment.Right
            };

            this.toolStrip1.Items.Insert(0, host);
            ToolStripLabel label = new ToolStripLabel("至")
            {
                Alignment = ToolStripItemAlignment.Right
            };

            this.toolStrip1.Items.Insert(0, label);
            ToolStripControlHost host2 = new ToolStripControlHost(this.startdt)
            {
                Alignment = ToolStripItemAlignment.Right
            };

            this.toolStrip1.Items.Insert(0, host2);
            ToolStripLabel label2 = new ToolStripLabel("接收日期:")
            {
                Alignment = ToolStripItemAlignment.Right
            };

            this.toolStrip1.Items.Insert(0, label2);
            ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
        }
Пример #21
0
 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;
 }