public void DUpdate() { Project.manufacture_number = ManufactureNumber; Project.model_number = ModelNumber; Project.project_name = ProjectName; Project.plan_version_id = PlanVersionID; Project.record_date = RecordDate; Project.plan_update_date = PlanUpdateDate; Project.remark = Remark;; Project.year_number = YearNumber; Project.remind_day = ProjectRemindDay; Project.accomplish_mark = accomplishMark; Project.isdelete = this.isDelete; Project.deletedescript = deleteDescript; Project.isFreeze = isFreeze; Project.isFreezedescript = isFreezeDescript; Project.delete_user_id = deleteUserID; Project.add_user_id = addUserID; Project.last_modify_user_id = lastModifyUserID; Project.delivery_time = deliveryTime; Project.contract_number = contractNumber; Project.invoice_completion_time = invoiceCompletionTime; if (UserRemindEntity != null) { UserRemindEntity.DUpdate(); } }
public void StartRemindEdit() { if (PlanManagerDomainContext != null && UserRemindEntity == null) { UserRemindEntity = new UserRemindEntity(); UserRemindEntity.UserRemind = new ProductManager.Web.Model.user_remind(); UserRemindEntity.ManufactureNumber = manufactureNumber; App app = Application.Current as App; UserRemindEntity.UserId = app.UserInfo.UserID; UserRemindEntity.DUpdate(); PlanManagerDomainContext.user_reminds.Add(UserRemindEntity.UserRemind); } }
void LoadUseRemindComplete(object sender, EventArgs e) { UserRemindEntityDicationary.Clear(); LoadOperation loadOperation = sender as LoadOperation; foreach (user_remind user_remind in loadOperation.Entities) { UserRemindEntity lUserRemindEntity = new UserRemindEntity(); lUserRemindEntity.UserRemind = user_remind; lUserRemindEntity.Update(); UserRemindEntityDicationary.Add(lUserRemindEntity.ManufactureNumber, lUserRemindEntity); } LoadOperation<ProductManager.Web.Model.project> LoadOperationProject = productDomainContext.Load<ProductManager.Web.Model.project>(productDomainContext.GetProjectQuery()); LoadOperationProject.Completed += loadOperationProject_Completed; }
void LoadUseRemindComplete(object sender, EventArgs e) { UserRemindEntityDicationary.Clear(); LoadOperation loadOperation = sender as LoadOperation; foreach (user_remind user_remind in loadOperation.Entities) { UserRemindEntity lUserRemindEntity = new UserRemindEntity(); lUserRemindEntity.UserRemind = user_remind; lUserRemindEntity.Update(); UserRemindEntityDicationary.Add(lUserRemindEntity.ManufactureNumber, lUserRemindEntity); } App app = Application.Current as App; LoadOperation<user_project> loadOperationUserProject = ProductDomainContext.Load<user_project>(ProductDomainContext.GetUserProjectQuery(app.UserInfo.UserID)); loadOperationUserProject.Completed += LoadUserProjectComplete; }
public void StartRemindEdit() { if (PlanManagerDomainContext != null && UserRemindEntity == null) { UserRemindEntity = new UserRemindEntity(); UserRemindEntity.UserRemind = new ProductManager.Web.Model.user_remind(); UserRemindEntity.ManufactureNumber = manufactureNumber; App app = Application.Current as App; UserRemindEntity.UserId = app.UserInfo.UserID; UserRemindEntity.DUpdate(); PlanManagerDomainContext.user_reminds.Add(UserRemindEntity.UserRemind); } }