2024-02-19 试车分包管理修改
This commit is contained in:
@@ -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(',');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user