예제 #1
0
        public ShenChanLc()
        {
            InitializeComponent();
            MaximizeBox   = false;
            this.TopLevel = false;
            this.Location = new Point(0, 0);
            dgvEX1Init();
            dgvEX2Init();

            Rectangle ScreenArea = Screen.GetWorkingArea(this);
            var       width      = (ScreenArea.Width) / Width;


            db = SqlBase.GetInstance();
            var getAll = db.Queryable <BaseList>()
                         .Where(it => it.leibie == "流程")
                         .Distinct()
                         .Select(it => new { it.itemkey })
                         .OrderBy(it => it.itemkey)
                         .ToList();

            Console.WriteLine("当前行数" + getAll.Count);

            dgvEX1.Rows.Clear();
            for (var i = 0; i < getAll.Count; i++)
            {
                var dataRowCollection = getAll[i];
                int index             = dgvEX1.Rows.Add();
                dgvEX1.Rows[index].Cells[0].Value = dataRowCollection.itemkey;
            }
        }
예제 #2
0
 public MaDanMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     init();
 }
예제 #3
0
 public ChenBenJinCangMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     init();
 }
예제 #4
0
 public Base()
 {
     InitializeComponent();
     this.TopLevel = false;
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
 }
예제 #5
0
파일: FrmRHLCB.cs 프로젝트: tpc707494/C-Erp
 public FrmRHLCB()
 {
     InitializeComponent();
     bsSch   = new BindingSource();
     lblwait = new LblWait(this);
     db      = SqlBase.GetInstance();
 }
예제 #6
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);
        }
예제 #7
0
파일: frmCL.cs 프로젝트: tpc707494/C-Erp
 public frmCL()
 {
     InitializeComponent();
     db = SqlBase.GetInstance();
     timerShowTime.Enabled  = true;
     timerShowTime.Interval = 1000;
     timerShowTime.Tick    += new EventHandler(this.timerShowTime_Tick);
     lblGS.Text             = UserProc.GSname + " 配方与称料控制系统";
     lblBB.Text             = "ver:" + UserProc.StrVer;
     if (Settings.Default.paraKeyB == 18)
     {
         lblBtnSch.Text = "查询料单(F1)";
         lblBtnMC.Text  = "免称扣除(F2)";
     }
     else
     {
         lblBtnSch.Text = "查询料单( • )";
         lblBtnMC.Text  = "免称扣除(上翻)";
     }
     this.dgvData.Dock        = DockStyle.Fill;
     this.txtJH.txt.TextAlign = HorizontalAlignment.Center;
     this.txtSL.txt.TextAlign = HorizontalAlignment.Center;
     this.txtZL.txt.TextAlign = HorizontalAlignment.Center;
     this.txtJH.txt.ForeColor = Color.DarkRed;
     this.txtSL.txt.ForeColor = Color.DarkRed;
     this.txtZL.txt.ForeColor = Color.DarkRed;
     this.lblDate.Text        = "";
     this.lblKeyS.Text        = "";
     this.lblTPerr.Text       = "";
 }
예제 #8
0
파일: FrmLogin.cs 프로젝트: tpc707494/C-Erp
 public FrmLogin(bool _islock)
 {
     this.EnableGlass = false;
     this.InitializeComponent();
     //this.lblGS.Text = UserProc.GSname;
     this.islock = _islock;
     db          = SqlBase.GetInstance();
 }
예제 #9
0
 public FanXiuDjCha()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
 }
예제 #10
0
 public ChanLiangDjMake()
 {
     InitializeComponent();
     this.Location     = new Point(0, 0);
     db                = SqlBase.GetInstance();
     lblPIH.txt.Text   = "100%";
     lblPIH.txt.Leave += Txt_Leave;
 }
예제 #11
0
 public Search()
 {
     InitializeComponent();
     this.TopLevel = false;
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     lblwait       = new LblWait((Form)this);
     Column3.Tag   = (object)"行:";
 }
예제 #12
0
파일: FrmDLJL.cs 프로젝트: tpc707494/C-Erp
 public FrmDLJL()
 {
     InitializeComponent();
     db            = SqlBase.GetInstance();
     this.lblwait  = new LblWait((Form)this);
     this.bsSch    = new BindingSource();
     mainColRL.Tag = "总行:";
     Search();
 }
예제 #13
0
 public FrmUser(Bar bar)
 {
     InitializeComponent();
     this.TopLevel        = false;
     db                   = SqlBase.GetInstance();
     Bottom_Group.Visible = false;
     this._bar            = bar;
     lblwait              = new LblWait((Form)this);
 }
예제 #14
0
 public Frm_SYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
 }
예제 #15
0
 public FrmRLRK1()
 {
     InitializeComponent();
     db           = SqlBase.GetInstance();
     this.lblwait = new LblWait((Form)this);
     EditMode     = false;
     SearchMode   = false;
     RL();
 }
예제 #16
0
 public JHBMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     if (db == null)
     {
         db = SqlBase.GetInstance();
     }
 }
예제 #17
0
        public LckBarSearch()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);

            db = SqlBase.GetInstance();
            serRL();
        }
예제 #18
0
 public FanXiuDjMake()
 {
     InitializeComponent();
     this.Location     = new Point(0, 0);
     db                = SqlBase.GetInstance();
     lblPIH.txt.Leave += Txt_Leave;
     //EableInput(false);
     Empty();
 }
예제 #19
0
 public frmDLsch(string _lblCancel, Keys _cancelKey)
 {
     this.InitializeComponent();
     this.lblCancel.Text = _lblCancel;
     this.cancelKey      = _cancelKey;
     if (db == null)
     {
         db = SqlBase.GetInstance();
     }
 }
예제 #20
0
파일: frmZDsel.cs 프로젝트: tpc707494/C-Erp
 public frmZDsel(string _lblCancel, Keys _cancelKey)
 {
     this.InitializeComponent();
     this.lblCancel.Text            = _lblCancel;
     this.cancelKey                 = _cancelKey;
     this.KeyUp                    += new KeyEventHandler(this.this_KeyUp);
     this.txtZL.LostFocus          += new EventHandler(this.txtZL_LostFocus);
     this.dgvRL.CurrentCellChanged += new EventHandler(this.dgvRL_CurrentCellChanged);
     db = SqlBase.GetInstance();
 }
예제 #21
0
파일: FrmPSW.cs 프로젝트: tpc707494/C-Erp
 public FrmPSW()
 {
     InitializeComponent();
     this.TopLevel = false;
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     this.txtWy.txt.PasswordChar  = '*';
     this.txtWn1.txt.PasswordChar = '*';
     this.txtWn2.txt.PasswordChar = '*';
 }
예제 #22
0
 public DuiZhangDanMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     // lblPIH.txt.Leave += Txt_Leave;
     //lblPIH.txt.Text = "100%";
     lblZZ.txt.TextChanged  += Txt_Change;
     lblPIH.txt.TextChanged += Txt_Change;
 }
예제 #23
0
 public Frm_LYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
     riqi.Value = DateTime.Now;
 }
예제 #24
0
파일: Form1.cs 프로젝트: tpc707494/C-Erp
        public Form1()
        {
            this.EnableGlass = false;
            db = SqlBase.GetInstance();
            InitializeComponent();
            this.DoubleBuffered = true;
            //将指定的标志设置为true或false
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            //强制将分配的样式重新应用到控件
            this.UpdateStyles();
            string user_sn = Settings.Default.islogin;
            long   UserSn  = 0;

            try
            {
                UserSn = long.Parse(user_sn);
            }
            catch (Exception ex)
            {
                MessageBox.Show("登录数据丢失请重新登录");
                Settings.Default.islogin = "";
                Settings.Default.Save();
                return;
            }
            if (user_sn.Length == 0)
            {
                MessageBox.Show("登录数据丢失请重新登录");
                Settings.Default.islogin = "";
                Settings.Default.Save();
                return;
            }
            else
            {
                T_Base t_Base = db.Queryable <T_Base>()
                                .Where(it => it.SN == UserSn && it.leibie == ClsLogUser.LeiBie)
                                .First();
                if (t_Base == null)
                {
                    MessageBox.Show("登录数据丢失请重新登录");
                    Settings.Default.islogin = "";
                    Settings.Default.Save();
                    return;
                }
                else
                {
                    ClsLogUser.SNuser   = t_Base.SN;
                    ClsLogUser.BianHao  = t_Base.bianhao;
                    ClsLogUser.XinMing  = t_Base.itemName;
                    ClsLogUser.PassWord = t_Base.item0;
                    ClsLogUser.QuanXian = db.Queryable <T_BaseQX>().Where(it => it.SNuser == ClsLogUser.SNuser).ToList();
                    labelItem1.Text     = "当前用户名:" + ClsLogUser.XinMing + "  编号:" + ClsLogUser.BianHao;
                }
            }
            InitMunu();
        }
예제 #25
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();
        }
예제 #26
0
파일: FrmRLRK.cs 프로젝트: tpc707494/C-Erp
 public FrmRLRK()
 {
     InitializeComponent();
     lblwait     = new LblWait(this);
     TopLevel    = false;
     Location    = new Point(0, 0);
     db          = SqlBase.GetInstance();
     Column2.Tag = "总行:";
     Column6.Tag = "剩余总重合计";
     Column7.Tag = "剩余匹数合计";
     InitTab2();
 }
예제 #27
0
파일: Make.cs 프로젝트: tpc707494/C-Erp
 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();
 }
예제 #28
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;
        }
예제 #29
0
파일: JiTaiYuL.cs 프로젝트: tpc707494/C-Erp
        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;
        }
예제 #30
0
 public DiLiaoSet()
 {
     InitializeComponent();
     MaximizeBox = false;
     TopLevel    = false;
     Location    = new Point(0, 0);
     db          = SqlBase.GetInstance();
     Tag         = "管理";
     dgvEX1Init();
     this.lblCoboEX1.coboEX1.DropDownStyle         = ComboBoxStyle.DropDownList;
     this.lblCoboEX1.coboEX1.SelectedIndexChanged += new EventHandler(this.txtJH_SelectedIndexChanged);
     setQX();
     cellRL.RefList(coboDGV.leibie.助剂);
 }