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