Exemplo n.º 1
0
        private void AddSenior(GoldenHandContext context, string address, string name, string phone)
        {
            Senior s = new Senior();

            s.Address        = address;
            s.Name           = name;
            s.PhoneNumber    = phone;
            s.SeniorShortcut = name + ", " + address;
            context.Seniors.AddOrUpdate(s);
        }
Exemplo n.º 2
0
        private void AddForm(GoldenHandContext context, int lp, string info, DateTime regist, DateTime repair, int seniorId, int workerId, int statusId)
        {
            Form f = new Form();

            f.Lp               = lp;
            f.Info             = info;
            f.RegistrationDate = regist;
            f.RepairDate       = repair;
            f.SeniorId         = seniorId;
            f.WorkerId         = workerId;
            f.FormStatusId     = statusId;
            context.Forms.AddOrUpdate(f);
        }
Exemplo n.º 3
0
 private void Init()
 {
     this._context = GoldenHandContext.Instance;
     //_tpForms = new TabPage();
     //ShowFormInTabPage(FormsForm.Instance, _tpForms);
 }