Exemple #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);
        }
Exemple #2
0
 public FrmRHLCB()
 {
     InitializeComponent();
     bsSch   = new BindingSource();
     lblwait = new LblWait(this);
     db      = SqlBase.GetInstance();
 }
Exemple #3
0
 public FanXiuDjCha()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
 }
Exemple #4
0
 public FrmRLRK1()
 {
     InitializeComponent();
     db           = SqlBase.GetInstance();
     this.lblwait = new LblWait((Form)this);
     EditMode     = false;
     SearchMode   = false;
     RL();
 }
Exemple #5
0
 public FrmDLJL()
 {
     InitializeComponent();
     db            = SqlBase.GetInstance();
     this.lblwait  = new LblWait((Form)this);
     this.bsSch    = new BindingSource();
     mainColRL.Tag = "总行:";
     Search();
 }
Exemple #6
0
 public Frm_SYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
 }
Exemple #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)"行:";
 }
Exemple #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);
 }
Exemple #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;
 }
Exemple #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();
        }
Exemple #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();
 }
Exemple #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();
 }
Exemple #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;
        }
Exemple #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;
        }
Exemple #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;
        }
Exemple #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.色号);
        }
Exemple #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.胚客代号);
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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.员工);
        }
Exemple #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.客户);
        }
Exemple #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);
        }
Exemple #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 = "合计金额:";
        }