Exemple #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();
            }
        }
Exemple #3
0
 public FrmWarehouseManage(MainParent ware, StoreLocManage msl)
 {
     InitializeComponent();
     this.mWare = ware;
     this.mSloc = msl;
     dic.Add("仓库编号", "storehouseId");
     dic.Add("库位编号", "locId");
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #8
0
 public fFacInfo(MainParent sInfo /*, fFacDeptInfo FacDeptInfo*/)
 {
     InitializeComponent();
     //sFacDeptInfo = FacDeptInfo;
     sFinfo = sInfo;
 }
Exemple #9
0
 public FrmAteEmp(MainParent frm)
 {
     InitializeComponent();
     mFrm = frm;
 }
Exemple #10
0
 public FrmScrap(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
Exemple #11
0
 public createproduct(MainParent _mfrm)
 {
     InitializeComponent();
     mFrm = _mfrm;
 }
 public FrmQryKpMaster(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
 public Print5in1label(MainParent Msg)
 {
     InitializeComponent();
     ShowMP = Msg;
     //RefWebService_BLL.refWebVenderInfo.Instance
 }
Exemple #14
0
 public Frm_PLAN_RATE_REPORT(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Exemple #15
0
 public AddManufacturer(MainParent mfrm, SMTgangwangManage mgw)
 {
     InitializeComponent();
     this.mFrm = mfrm;
     this.mSMT = mgw;
 }
Exemple #16
0
 public StationNoInfo(MainParent mp)
 {
     InitializeComponent();
     mPm = mp;
 }
Exemple #17
0
 public Frm_TimeOut(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Exemple #18
0
 public FrmReceiveMaterials(MainParent frm)
 {
     InitializeComponent();
     this.mFrm = frm;
 }
Exemple #19
0
 public AddMaterials(MainParent mfrm)
 {
     InitializeComponent();
     this.mFrm = mfrm;
 }
Exemple #20
0
 public FrmTargetPlan(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
Exemple #21
0
 public FrmPOManage(MainParent mfr)
 {
     InitializeComponent();
     mFrm = mfr;
 }
Exemple #22
0
 public fuserinfo(MainParent Finfo)
 {
     InitializeComponent();
     sFinfo = Finfo;
 }
Exemple #23
0
 public Frm_POCheck(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Exemple #24
0
 public Frm_Fqc_Report(MainParent mfm)
 {
     InitializeComponent();
     mFrm = mfm;
 }
Exemple #25
0
 public fmMaterialManagement(MainParent Info)
 {
     InitializeComponent();
     sInfo = Info;
 }
Exemple #26
0
 public Frm_MaterialManage(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Exemple #27
0
 public StoreLocManage(MainParent mfm)
 {
     InitializeComponent();
     this.mFrm = mfm;
 }
Exemple #28
0
 public FrmBomNo(MainParent sInfo)
 {
     InitializeComponent();
     sMain = sInfo;
 }
 public Frm_Station_Management(MainParent Frm)
 {
     InitializeComponent();
     mFrm = Frm;
 }
Exemple #30
0
 public fRoleInfo(MainParent Finfo, fuserinfo dt)
 {
     InitializeComponent();
     sFinfo = Finfo;
     sdt    = dt;
 }