public void DataBind(int planDutyId) { try { PlanDutyTable theDataToBind = _IPlanDutyFacade.GetPlanDutyTableByPKID(planDutyId); SetPlanDutyView(theDataToBind); } catch { _ItsView.SetPlanDutyView.Message = "初始化信息失败"; } }
public void GetPlanDutyByID(string id) { int id_Int; if (!int.TryParse(id, out id_Int)) { _ItsView.SetPlanDutyView.Message = "排班表ID需为整数"; return; } _ItsView.SetPlanDutyView.PlanDutyID = id; PlanDutyTable planDutyTable = _IPlanDutyFacade.GetPlanDutyTableByPKID(id_Int); new PlanDudyBinder(_ItsView, _IPlanDutyFacade).DataBind(planDutyTable); }
private void CopyEvent(string id) { int id_Int; if (!int.TryParse(id, out id_Int)) { _View.TitleMessage = "排班表ID需为整数"; return; } PlanDutyTable planDutyTable = _IPlanDutyFacade.GetPlanDutyTableByPKID(id_Int); try { _View.SessionCopyPlanDutyTable = planDutyTable; _View.TitleMessage = "复制成功!"; } catch (ApplicationException ae) { _View.TitleMessage = ae.Message; } }