public string GetLastDISPLAYSORT() { return(base.ExecuteActionJsonResult("获取最新排序号", () => { int lastDISPLAYSORT = EntityOperate <GI_CodeDict> .GetLastOrderId(Request["PARENTID"]); return new WebApi_Result() { data = lastDISPLAYSORT }; })); }
/// <summary> /// 获取最新排序号 /// </summary> /// <returns></returns> public string GetLastDISPLAYSORT() { return(base.ExecuteActionJsonResult("获取最新排序号", () => { int lastDISPLAYSORT = EntityOperate <CD_PatientDiagnosis> .GetLastOrderId("", "SortOrder", "InpatientId = " + Request["InpatientId"] + " and DiagnosisType = " + Request["DiagnosisType"]); return new WebApi_Result() { data = lastDISPLAYSORT }; })); }
/// <summary> /// 获取最新组织机构编号,用于新增时 前端自动生成组织机构编号 /// </summary> /// <returns></returns> public string GetOrganID() { return(base.ExecuteActionJsonResult("获取最新组织机构编号", () => { string strReturn = ""; int lastDISPLAYSORT = EntityOperate <GI_OrganInfo> .GetLastOrderId(Request["ParentID"], "ORGANID"); if (lastDISPLAYSORT <= 1) { strReturn = Request["ParentID"] + "01"; } else { strReturn = lastDISPLAYSORT + ""; } return new WebApi_Result() { data = strReturn }; })); }