18-19-20
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user