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; } }
public MaDanMake() { InitializeComponent(); this.Location = new Point(0, 0); db = SqlBase.GetInstance(); init(); }
public ChenBenJinCangMake() { InitializeComponent(); this.Location = new Point(0, 0); db = SqlBase.GetInstance(); init(); }
public Base() { InitializeComponent(); this.TopLevel = false; this.Location = new Point(0, 0); db = SqlBase.GetInstance(); }
public FrmRHLCB() { InitializeComponent(); bsSch = new BindingSource(); lblwait = new LblWait(this); db = SqlBase.GetInstance(); }
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); }
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 = ""; }
public FrmLogin(bool _islock) { this.EnableGlass = false; this.InitializeComponent(); //this.lblGS.Text = UserProc.GSname; this.islock = _islock; db = SqlBase.GetInstance(); }
public FanXiuDjCha() { InitializeComponent(); lblwait = new LblWait(this); TopLevel = false; Location = new Point(0, 0); db = SqlBase.GetInstance(); }
public ChanLiangDjMake() { InitializeComponent(); this.Location = new Point(0, 0); db = SqlBase.GetInstance(); lblPIH.txt.Text = "100%"; lblPIH.txt.Leave += Txt_Leave; }
public Search() { InitializeComponent(); this.TopLevel = false; this.Location = new Point(0, 0); db = SqlBase.GetInstance(); lblwait = new LblWait((Form)this); Column3.Tag = (object)"行:"; }
public FrmDLJL() { InitializeComponent(); db = SqlBase.GetInstance(); this.lblwait = new LblWait((Form)this); this.bsSch = new BindingSource(); mainColRL.Tag = "总行:"; Search(); }
public FrmUser(Bar bar) { InitializeComponent(); this.TopLevel = false; db = SqlBase.GetInstance(); Bottom_Group.Visible = false; this._bar = bar; lblwait = new LblWait((Form)this); }
public Frm_SYDJ() { InitializeComponent(); lblwait = new LblWait(this); TopLevel = false; Location = new Point(0, 0); db = SqlBase.GetInstance(); InitTab2(); }
public FrmRLRK1() { InitializeComponent(); db = SqlBase.GetInstance(); this.lblwait = new LblWait((Form)this); EditMode = false; SearchMode = false; RL(); }
public JHBMake() { InitializeComponent(); this.Location = new Point(0, 0); if (db == null) { db = SqlBase.GetInstance(); } }
public LckBarSearch() { InitializeComponent(); this.TopLevel = false; this.Location = new Point(0, 0); db = SqlBase.GetInstance(); serRL(); }
public FanXiuDjMake() { InitializeComponent(); this.Location = new Point(0, 0); db = SqlBase.GetInstance(); lblPIH.txt.Leave += Txt_Leave; //EableInput(false); Empty(); }
public frmDLsch(string _lblCancel, Keys _cancelKey) { this.InitializeComponent(); this.lblCancel.Text = _lblCancel; this.cancelKey = _cancelKey; if (db == null) { db = SqlBase.GetInstance(); } }
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(); }
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 = '*'; }
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; }
public Frm_LYDJ() { InitializeComponent(); lblwait = new LblWait(this); TopLevel = false; Location = new Point(0, 0); db = SqlBase.GetInstance(); InitTab2(); riqi.Value = DateTime.Now; }
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(); }
//初始化 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(); }
public FrmRLRK() { InitializeComponent(); lblwait = new LblWait(this); TopLevel = false; Location = new Point(0, 0); db = SqlBase.GetInstance(); Column2.Tag = "总行:"; Column6.Tag = "剩余总重合计"; Column7.Tag = "剩余匹数合计"; InitTab2(); }
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(); }
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; }
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; }
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.助剂); }