This commit is contained in:
2024-05-09 16:19:20 +08:00
parent 662829cff8
commit 42cb326102
17 changed files with 367 additions and 2024 deletions
+22
View File
@@ -155,5 +155,27 @@ namespace BLL
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 根据条件加载部门
/// </summary>
/// <param name="dropName"></param>
/// <param name="isShowPlease"></param>
public static void InitDepartToWhere(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "DepartId";
dropName.DataTextField = "DepartName";
dropName.DataSource = GetDarpDepartList();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
public static List<Model.Base_Depart> GetDarpDepartList()
{
return (from x in Funs.DB.Base_Depart where x.DepartCode.Contains("/") || x.DepartCode.ToLower() == "none" orderby x.DepartCode select x).ToList();
}
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ namespace BLL.Common
string strGetResponse = string.Empty;
try
{
var getRequest = CreateHttpRequest(url,"", "GET");
var getRequest = CreateHttpRequest(url,"GET", "");
var getResponse = getRequest.GetResponse() as HttpWebResponse;
strGetResponse = GetHttpResponse(getResponse, "GET");
}
+4
View File
@@ -46,6 +46,8 @@ namespace BLL
newPunishment.CompletionDate = punishment.CompletionDate;
newPunishment.Flag = punishment.Flag;
newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes;
newPunishment.SelectYesNo = punishment.SelectYesNo;
newPunishment.Def=punishment.Def;
Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment);
Funs.DB.SubmitChanges();
}
@@ -71,6 +73,8 @@ namespace BLL
newPunishment.Violation_Inspector = punishment.Violation_Inspector;
newPunishment.CompletionDate = punishment.CompletionDate;
newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes;
newPunishment.SelectYesNo = punishment.SelectYesNo;
newPunishment.Def = punishment.Def;
Funs.DB.SubmitChanges();
}
}