2024-02-19 试车分包管理修改

This commit is contained in:
2024-02-19 10:32:15 +08:00
parent 4d854a854a
commit 1180cda1a6
26 changed files with 1203 additions and 1290 deletions
@@ -37,7 +37,7 @@ namespace BLL
(string.IsNullOrEmpty(table.InstallationNames) || x.InstallationNames.Contains(table.InstallationNames)) &&
(string.IsNullOrEmpty(table.AttachUrl) || x.AttachUrl.Contains(table.AttachUrl)) &&
(string.IsNullOrEmpty(table.Remark) || x.Remark.Contains(table.Remark)) &&
(string.IsNullOrEmpty(table.DriverSubNames) || x.DriverSubNames.Contains(table.DriverSubNames))
(string.IsNullOrEmpty(table.SubcontractingTypes) || x.SubcontractingTypes.Contains(table.SubcontractingTypes))
select x
;
@@ -75,8 +75,8 @@ namespace BLL
x.IsInvited,
x.AttachUrl,
x.Remark,
x.DriverSubNames,
x.SubcontractingTypes,
StateName = GetSubStateName(x.State)
};
}
#endregion
@@ -113,7 +113,8 @@ namespace BLL
newDriverSubPlan.IsInvited = DriverSubPlan.IsInvited;
newDriverSubPlan.AttachUrl = DriverSubPlan.AttachUrl;
newDriverSubPlan.Remark = DriverSubPlan.Remark;
newDriverSubPlan.DriverSubNames= DriverSubPlan.DriverSubNames;
newDriverSubPlan.SubcontractingTypes= DriverSubPlan.SubcontractingTypes;
newDriverSubPlan.State = DriverSubPlan.State;
Funs.DB.DriverSub_DriverSubPlan.InsertOnSubmit(newDriverSubPlan);
Funs.DB.SubmitChanges();
}
@@ -137,8 +138,8 @@ namespace BLL
newDriverSubPlan.IsInvited = DriverSubPlan.IsInvited;
newDriverSubPlan.AttachUrl = DriverSubPlan.AttachUrl;
newDriverSubPlan.Remark = DriverSubPlan.Remark;
newDriverSubPlan.DriverSubNames = DriverSubPlan.DriverSubNames;
newDriverSubPlan.SubcontractingTypes = DriverSubPlan.SubcontractingTypes;
newDriverSubPlan.State = DriverSubPlan.State;
Funs.DB.SubmitChanges();
}
}
@@ -171,5 +172,51 @@ namespace BLL
Funs.FineUIPleaseSelect(dropName);
}
}
}
public static string GetSubcontractingTypeNames(object str)
{
string strName = "";
if (str != null)
{
string[] strArr = str.ToString().Split(',');
foreach (string s in strArr)
{
foreach (System.Web.UI.WebControls.ListItem item in DropListService.drpDriverSubNameList())
{
if (item.Value == s)
{
strName += item.Text + ",";
}
}
}
}
return strName.TrimEnd(',');
}
public static string GetSubStateName(int? str)
{
string strName = "";
if (str != null)
{
string[] strArr = str.ToString().Split(',');
foreach (string s in strArr)
{
foreach (System.Web.UI.WebControls.ListItem item in DropListService.drpDriverSubPlanStateList())
{
if (item.Value == s)
{
strName += item.Text + ",";
}
}
}
}
return strName.TrimEnd(',');
}
}
}