Example #1
0
 public storagebuffer(MainParent frm, string trsn, int flag)
 {
     InitializeComponent();
     mFrm       = frm;
     this.mTrsn = trsn;
     this.mFlag = flag;
 }
        private void signIn_Login_Click(object sender, EventArgs e)
        {
            DataContext  db    = new DataContext(ConnectionString);
            Table <User> users = db.GetTable <User>();

            try
            {
                User user = db.GetTable <User>().Where(t => t.Login == loginTextBox_Login.Text &&
                                                       t.Password == passwordTextBox_Login.Text).Single();
                string status = user.Status;
                if (user.Status == "Один з батьків/Опікун")
                {
                    MainParent main = new MainParent(user, status);
                    this.Hide();
                    main.Show();
                }
                else
                {
                    Main main = new Main(status);
                    this.Hide();
                    main.Show();
                }
            }
            catch
            {
                MessageBox.Show("Користувача з такими даними не існує.", "Повідомлення");
                loginTextBox_Login.Clear();
                passwordTextBox_Login.Clear();
            }
        }
Example #3
0
 public FrmWarehouseManage(MainParent ware, StoreLocManage msl)
 {
     InitializeComponent();
     this.mWare = ware;
     this.mSloc = msl;
     dic.Add("仓库编号", "storehouseId");
     dic.Add("库位编号", "locId");
 }
Example #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="woc">父窗体</param>
 /// <param name="key">序列号类型</param>
 public AddSNRange(MainParent _frm, string _woid, WorkOrderCreate woc, string key)
 {
     InitializeComponent();
     mWoc  = woc;
     mKey  = key;
     mFrm  = _frm;
     mwoid = _woid;
 }
Example #5
0
 public FrmMaterialsPrint(MainParent Msg, string VenderCode,
                          string VenderName, string Partnumber, string Kpdesc,
                          string PartGroup, string QTY, string PO)
 {
     InitializeComponent();
     ShowMP          = Msg;
     this.partnumber = Partnumber;
     this.kpdesc     = Kpdesc;
     this.vendercode = VenderCode;
     this.vendername = VenderName;
     this.qty        = QTY;
     this.partgroup  = PartGroup;
     this.po         = PO;
 }
Example #6
0
 private void back_AddActivity_Click(object sender, EventArgs e)
 {
     if (status == "Один з батьків/Опікун")
     {
         MainParent main = new MainParent(user, status);
         main.Show();
         this.Hide();
     }
     else
     {
         Main main = new Main(status);
         main.Show();
         this.Hide();
     }
 }
Example #7
0
 private void AdditionalActivity_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (status == "Один з батьків/Опікун")
     {
         MainParent main = new MainParent(user, status);
         main.Show();
         this.Hide();
     }
     else
     {
         Main main = new Main(status);
         main.Show();
         this.Hide();
     }
 }
Example #8
0
 public fFacInfo(MainParent sInfo /*, fFacDeptInfo FacDeptInfo*/)
 {
     InitializeComponent();
     //sFacDeptInfo = FacDeptInfo;
     sFinfo = sInfo;
 }
Example #9
0
 public FrmAteEmp(MainParent frm)
 {
     InitializeComponent();
     mFrm = frm;
 }
Example #10
0
 public FrmScrap(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
Example #11
0
 public createproduct(MainParent _mfrm)
 {
     InitializeComponent();
     mFrm = _mfrm;
 }
Example #12
0
 public FrmQryKpMaster(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Example #13
0
 public Print5in1label(MainParent Msg)
 {
     InitializeComponent();
     ShowMP = Msg;
     //RefWebService_BLL.refWebVenderInfo.Instance
 }
Example #14
0
 public Frm_PLAN_RATE_REPORT(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Example #15
0
 public AddManufacturer(MainParent mfrm, SMTgangwangManage mgw)
 {
     InitializeComponent();
     this.mFrm = mfrm;
     this.mSMT = mgw;
 }
Example #16
0
 public StationNoInfo(MainParent mp)
 {
     InitializeComponent();
     mPm = mp;
 }
Example #17
0
 public Frm_TimeOut(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Example #18
0
 public FrmReceiveMaterials(MainParent frm)
 {
     InitializeComponent();
     this.mFrm = frm;
 }
Example #19
0
 public AddMaterials(MainParent mfrm)
 {
     InitializeComponent();
     this.mFrm = mfrm;
 }
Example #20
0
 public FrmTargetPlan(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
Example #21
0
 public FrmPOManage(MainParent mfr)
 {
     InitializeComponent();
     mFrm = mfr;
 }
Example #22
0
 public fuserinfo(MainParent Finfo)
 {
     InitializeComponent();
     sFinfo = Finfo;
 }
Example #23
0
 public Frm_POCheck(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Example #24
0
 public Frm_Fqc_Report(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Example #25
0
 public fmMaterialManagement(MainParent Info)
 {
     InitializeComponent();
     sInfo = Info;
 }
Example #26
0
 public Frm_MaterialManage(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Example #27
0
 public StoreLocManage(MainParent mfm)
 {
     InitializeComponent();
     this.mFrm = mfm;
 }
Example #28
0
 public FrmBomNo(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
Example #29
0
 public Frm_Station_Management(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Example #30
0
 public fRoleInfo(MainParent Finfo, fuserinfo dt)
 {
     InitializeComponent();
     sFinfo = Finfo;
     sdt    = dt;
 }