Beispiel #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;
            }
        }
Beispiel #2
0
 public MaDanMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     init();
 }
Beispiel #3
0
 public ChenBenJinCangMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
     init();
 }
Beispiel #4
0
 public Base()
 {
     InitializeComponent();
     this.TopLevel = false;
     this.Location = new Point(0, 0);
     db            = SqlBase.GetInstance();
 }
Beispiel #5
0
 public FrmRHLCB()
 {
     InitializeComponent();
     bsSch   = new BindingSource();
     lblwait = new LblWait(this);
     db      = SqlBase.GetInstance();
 }
Beispiel #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);
        }
Beispiel #7
0
 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       = "";
 }
Beispiel #8
0
 public FrmLogin(bool _islock)
 {
     this.EnableGlass = false;
     this.InitializeComponent();
     //this.lblGS.Text = UserProc.GSname;
     this.islock = _islock;
     db          = SqlBase.GetInstance();
 }
Beispiel #9
0
 public FanXiuDjCha()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
 }
Beispiel #10
0
 public ChanLiangDjMake()
 {
     InitializeComponent();
     this.Location     = new Point(0, 0);
     db                = SqlBase.GetInstance();
     lblPIH.txt.Text   = "100%";
     lblPIH.txt.Leave += Txt_Leave;
 }
Beispiel #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)"行:";
 }
Beispiel #12
0
 public FrmDLJL()
 {
     InitializeComponent();
     db            = SqlBase.GetInstance();
     this.lblwait  = new LblWait((Form)this);
     this.bsSch    = new BindingSource();
     mainColRL.Tag = "总行:";
     Search();
 }
Beispiel #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);
 }
Beispiel #14
0
 public Frm_SYDJ()
 {
     InitializeComponent();
     lblwait  = new LblWait(this);
     TopLevel = false;
     Location = new Point(0, 0);
     db       = SqlBase.GetInstance();
     InitTab2();
 }
Beispiel #15
0
 public FrmRLRK1()
 {
     InitializeComponent();
     db           = SqlBase.GetInstance();
     this.lblwait = new LblWait((Form)this);
     EditMode     = false;
     SearchMode   = false;
     RL();
 }
Beispiel #16
0
 public JHBMake()
 {
     InitializeComponent();
     this.Location = new Point(0, 0);
     if (db == null)
     {
         db = SqlBase.GetInstance();
     }
 }
Beispiel #17
0
        public LckBarSearch()
        {
            InitializeComponent();
            this.TopLevel = false;
            this.Location = new Point(0, 0);

            db = SqlBase.GetInstance();
            serRL();
        }
Beispiel #18
0
 public FanXiuDjMake()
 {
     InitializeComponent();
     this.Location     = new Point(0, 0);
     db                = SqlBase.GetInstance();
     lblPIH.txt.Leave += Txt_Leave;
     //EableInput(false);
     Empty();
 }
Beispiel #19
0
 public frmDLsch(string _lblCancel, Keys _cancelKey)
 {
     this.InitializeComponent();
     this.lblCancel.Text = _lblCancel;
     this.cancelKey      = _cancelKey;
     if (db == null)
     {
         db = SqlBase.GetInstance();
     }
 }
Beispiel #20
0
 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();
 }
Beispiel #21
0
 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 = '*';
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #24
0
        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();
        }
Beispiel #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();
        }
Beispiel #26
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();
 }
Beispiel #27
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();
 }
Beispiel #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;
        }
Beispiel #29
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;
        }
Beispiel #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.助剂);
 }