Пример #1
0
        public ColorName()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            Rectangle ScreenArea = Screen.GetWorkingArea(this);

            dgvEX1.BackgroundColor             = SystemColors.Window;
            dgvEX1.AutoGenerateColumns         = false;
            dgvEX1.AllowUserToAddRows          = false;
            dgvEX1.AllowUserToDeleteRows       = false;
            dgvEX1.AllowUserToResizeRows       = false;
            dgvEX1.AllowUserToAddRows          = false;                                                   //删除最后一条空白
            dgvEX1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; //行高不可变
            dgvEX1.RowHeadersWidthSizeMode     = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dgvEX1.MultiSelect   = false;
            dgvEX1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgvEX1.EditMode      = DataGridViewEditMode.EditProgrammatically;

            var getAll = db.Queryable <T_Base>()
                         .Where(it => it.leibie == YanSe)
                         .ToList();

            ShowData(getAll);
        }
Пример #2
0
 public FrmRHLCB()
 {
     InitializeComponent();
     bsSch   = new BindingSource();
     lblwait = new LblWait(this);
     db      = SqlBase.GetInstance();
 }
Пример #3
0
 public FanXiuDjCha()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
 }
Пример #4
0
 public FrmRLRK1()
 {
     InitializeComponent();
     db           = SqlBase.GetInstance();
     this.lblwait = new LblWait((Form)this);
     EditMode     = false;
     SearchMode   = false;
     RL();
 }
Пример #5
0
 public FrmDLJL()
 {
     InitializeComponent();
     db            = SqlBase.GetInstance();
     this.lblwait  = new LblWait((Form)this);
     this.bsSch    = new BindingSource();
     mainColRL.Tag = "总行:";
     Search();
 }
Пример #6
0
 public Frm_SYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
 }
Пример #7
0
 public Search()
 {
     InitializeComponent();
     this.TopLevel = false;
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     lblwait       = new LblWait((Form)this);
     Column3.Tag   = (object)"行:";
 }
Пример #8
0
 public FrmUser(Bar bar)
 {
     InitializeComponent();
     this.TopLevel        = false;
     db                   = SqlBase.GetInstance();
     Bottom_Group.Visible = false;
     this._bar            = bar;
     lblwait              = new LblWait((Form)this);
 }
Пример #9
0
 public Frm_LYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
     riqi.Value = DateTime.Now;
 }
Пример #10
0
        //初始化
        public ShenChanGx()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();
        }
Пример #11
0
 public FrmRLRK()
 {
     InitializeComponent();
     lblwait     = new LblWait(this);
     TopLevel    = false;
     Location    = new Point(0, 0);
     db          = SqlBase.GetInstance();
     Column2.Tag = "总行:";
     Column6.Tag = "剩余总重合计";
     Column7.Tag = "剩余匹数合计";
     InitTab2();
 }
Пример #12
0
 public Make()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     lblwait       = new LblWait((Form)this);
     ///Column3.Tag = (object)"行:";
     initEvent();
     refList();
     bsShowMain = new BindingSource();
     bsShowData = new BindingSource();
 }
Пример #13
0
        public MaDanChaXun()
        {
            InitializeComponent();
            lblwait  = new LblWait(this);
            TopLevel = false;
            Location = new Point(0, 0);
            db       = SqlBase.GetInstance();
            //tabEx1.SelectedIndexChanged += TabEx1_SelectedIndexChanged;
            InitTab2();

            InitdataGridView(true);
            lblTxt5.txt.Text = ClsLogUser.XinMing;
        }
Пример #14
0
        public JiTaiYuL()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            dgvEX1.BackgroundColor = SystemColors.Window;
        }
Пример #15
0
        public Customer()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();
            lblwait       = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            Rectangle ScreenArea = Screen.GetWorkingArea(this);

            dgvEX1.BackgroundColor = SystemColors.Window;
        }
Пример #16
0
        public JinDuCha()
        {
            InitializeComponent();
            lblwait  = new LblWait(this);
            TopLevel = false;
            Location = new Point(0, 0);
            db       = SqlBase.GetInstance();

            chkKehu.cobodgv.RefList(coboDGV.leibie.客户);
            chkPinmin.cobodgv.RefList(coboDGV.leibie.品名);
            chkCoboDGV1.cobodgv.RefList(coboDGV.leibie.生产工序);
            chkZZ.cobodgv.RefList(coboDGV.leibie.颜色);
            chkPS.cobodgv.RefList(coboDGV.leibie.色号);
        }
Пример #17
0
 public PBJin()
 {
     InitializeComponent();
     lblwait      = new LblWait(this);
     TopLevel     = false;
     Location     = new Point(0, 0);
     db           = SqlBase.GetInstance();
     Column2.Tag  = "总行:";
     Column5.Tag  = "合计:";
     Column6.Tag  = "剩余总重合计";
     Column7.Tag  = "剩余匹数合计";
     Column10.Tag = "总重量合计";
     InitTab2();
     lblDH.RefList(coboDGV.leibie.胚客代号);
 }
Пример #18
0
        public SHdj()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();
            Column1.Tag = "总行";

            var getAll = db.Queryable <BaseIList>()
                         .Where(it => it.leibie == YanSe)
                         .ToList();

            ShowData(getAll);
        }
Пример #19
0
        public ColorType()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            dgvEX1.BackgroundColor = SystemColors.Window;

            var getAll = db.Queryable <T_Base>()
                         .Where(it => it.leibie == SEHAOLEIBIE)
                         .ToList();

            ShowData(getAll);
        }
Пример #20
0
        //初始化
        public RanHuaName()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            dgvEX1.BackgroundColor = SystemColors.Window;

            var getAll = db.Queryable <T_Base>()
                         .Where(it => it.leibie == RANLIAOMINGCHEN)
                         .OrderBy(it => it.bianhao, OrderByType.Asc)
                         .ToList();

            ShowData(getAll);
        }
Пример #21
0
        public ChenBenChuCangChaXun()
        {
            InitializeComponent();
            lblwait     = new LblWait(this);
            TopLevel    = false;
            Location    = new Point(0, 0);
            db          = SqlBase.GetInstance();
            Column3.Tag = "总行:";
            //dgvEX1.Columns[2].Tag = "行:";
            InitTab2();
            chkPinmin.cobodgv.RefList(coboDGV.leibie.品名);
            chkKehu.cobodgv.RefList(coboDGV.leibie.客户);
            chkJCY.cobodgv.RefList(coboDGV.leibie.员工);
            chkYWY.cobodgv.RefList(coboDGV.leibie.业务员);

            lblKH.RefList(coboDGV.leibie.客户);
            lblPM.RefList(coboDGV.leibie.品名);
            lblYWY.RefList(coboDGV.leibie.业务员);
            lblJCY.RefList(coboDGV.leibie.员工);
        }
Пример #22
0
        public PKDH()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            Rectangle ScreenArea = Screen.GetWorkingArea(this);

            /*
             * var width = (ScreenArea.Width) / dgvEX1.Columns.Count;
             * for (var i=0;i< dgvEX1.Columns.Count; i++)
             * {
             *  var column = dgvEX1.Columns[i];
             *  column.Width = width;
             * }
             */
            dgvEX1.BackgroundColor             = SystemColors.Window;
            dgvEX1.AutoGenerateColumns         = false;
            dgvEX1.AllowUserToAddRows          = false;
            dgvEX1.AllowUserToDeleteRows       = false;
            dgvEX1.AllowUserToResizeRows       = false;
            dgvEX1.AllowUserToAddRows          = false;                                                   //删除最后一条空白
            dgvEX1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; //行高不可变
            dgvEX1.RowHeadersWidthSizeMode     = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dgvEX1.MultiSelect   = false;
            dgvEX1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgvEX1.EditMode      = DataGridViewEditMode.EditProgrammatically;

            var getAll = db.Queryable <T_Base>()
                         .Where(it => it.leibie == CW)
                         .ToList();

            ShowData(getAll);
            chkTxt3.cobodgv.RefList(coboDGV.leibie.客户);
            lblTxt1.RefList(coboDGV.leibie.客户);
        }
Пример #23
0
        public GreigeName()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            db            = SqlBase.GetInstance();

            lblwait = new LblWait((Form)this);
            groupPanel1.ResumeLayout(false);
            groupPanel1.PerformLayout();

            Rectangle ScreenArea = Screen.GetWorkingArea(this);

            dgvEX1.BackgroundColor = SystemColors.Window;

            var getAll = db.Queryable <T_Base>()
                         .Where(it => it.leibie == SHAZHONG)
                         .ToList();

            ShowData(getAll);
        }
Пример #24
0
        public FrmPFCB()
        {
            InitializeComponent();
            db           = SqlBase.GetInstance();
            this.lblwait = new LblWait((Form)this);


            this.bsSch      = new BindingSource();
            this.bsShowMain = new BindingSource();
            this.bsShowData = new BindingSource();
            this.mainDgv.AutoGenerateColumns = false;
            this.mainDgv.Dock     = DockStyle.Fill;
            this.editDgvMain.Dock = DockStyle.Fill;
            this.dgvSum();
            this.lblwait = new LblWait((Form)this);
            this.editTxtDJ.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtKZ.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtMS.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtJH.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtSL.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtZL.txt.TextAlign         = HorizontalAlignment.Center;
            this.editTxtJLCS.txt.TextAlign       = HorizontalAlignment.Center;
            this.editTxtDJ.txt.ForeColor         = Color.DarkRed;
            this.editTxtKZ.txt.ForeColor         = Color.DarkRed;
            this.editTxtMS.txt.ForeColor         = Color.DarkRed;
            this.editTxtSL.txt.ForeColor         = Color.DarkRed;
            this.editTxtZL.txt.ForeColor         = Color.DarkRed;
            this.editTxtJLCS.txt.ForeColor       = Color.DarkRed;
            this.editDgvMain.AutoGenerateColumns = false;
            this.editColBL.ValueType             = typeof(Decimal);
            this.editColYL.ValueType             = typeof(Decimal);
            this.editColJL.ValueType             = typeof(Decimal);
            this.editColJLYL.ValueType           = typeof(Decimal);
            editColGX.Tag = "总行:";
            editColJE.Tag = "合计金额:";
        }