Example #1
0
 /// <summary>
 /// 初始化窗体M
 /// </summary>
 public Form_InspectItem()
 {
     InitializeComponent();
     dataGridView_inspect.Visible = false;
     DoubleBufferedDataGridView.DoubleBuffered(this.dataGridView_inspect, true);
     label_inspectResultText.Visible = false;
 }
Example #2
0
 /// <summary>
 /// 初始化窗体
 /// </summary>
 public Form_ReportBase()
 {
     InitializeComponent();
     dataGridView_Report.TopLeftHeaderCell.Value = "序号";
     dataGridView_Report.RowHeadersWidth         = 60;
     dataGridView_Report.ScrollBars = ScrollBars.Both;
     DoubleBufferedDataGridView.DoubleBuffered(this.dataGridView_Report, true);//解决该控件滚动条移动时,数据刷新过慢的问题
 }
        int CurrentRowNO  = 0;                                         //当前记录行

        #endregion


        /// <summary>
        /// 初始化窗体
        /// </summary>
        public Form_MaterialsOut()
        {
            InitializeComponent();
            dataGridView_MaterialsOut.TopLeftHeaderCell.Value = "序号";
            dataGridView_MaterialsOut.RowHeadersWidth         = 60;
            dataGridView_MaterialsOut.ScrollBars = ScrollBars.Both;
            DoubleBufferedDataGridView.DoubleBuffered(this.dataGridView_MaterialsOut, true);//解决该控件滚动条移动时,数据刷新过慢的问题

            this.comboBox_WareHouseCode.DropDownStyle = ComboBoxStyle.DropDownList;
            this.comboBox_WareHouseCode.DataSource    = dt1;
            this.comboBox_WareHouseCode.DisplayMember = "cWhName";
            this.comboBox_WareHouseCode.ValueMember   = "cWhCode";
            this.comboBox_WareHouseCode.SelectedIndex = -1;
        }
 /// <summary>
 /// 初始化控件,成本写入菜单不可见
 /// </summary>
 public Form_WriteCostObject()
 {
     InitializeComponent();
     toolStripButton_writeForOrder.Enabled       = false;
     toolStripButton_writeForOrder.Visible       = false;
     toolStripButton_writeForOutsourcing.Enabled = false;
     toolStripButton_writeForOutsourcing.Visible = false;
     toolStripButton_resultQuery.Visible         = false;
     textBox_startDate.Text        = "";
     textBox_endDate.Text          = "";
     dataGridView_writeResult.Dock = DockStyle.None;
     dataGridView_writeResult.TopLeftHeaderCell.Value = "序号";
     dataGridView_writeResult.RowHeadersWidth         = 60;
     dataGridView_writeResult.ScrollBars = ScrollBars.Both;
     DoubleBufferedDataGridView.DoubleBuffered(this.dataGridView_writeResult, true);//解决该控件滚动条移动时,数据刷新过慢的问题
 }