2024-02-19 试车分包管理修改
This commit is contained in:
parent
4d854a854a
commit
1180cda1a6
|
@ -0,0 +1,106 @@
|
|||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column ContactInfo
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column ChargeManInfo
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column ContactContent
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
add IsBidirectional bit
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'是否中标', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContact',
|
||||
'COLUMN', 'IsBidirectional'
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column Result
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column IntTime
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column OutTime
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column AttachUrl
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开车分包计划主键', 'SCHEMA', 'dbo', 'TABLE',
|
||||
'DriverSub_DriverSubContact', 'COLUMN', 'DriverSubPlanId'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开车联络商表主键', 'SCHEMA', 'dbo', 'TABLE',
|
||||
'DriverSub_DriverSubContact', 'COLUMN', 'DriverSubContractorsId'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开车分包类别', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContact',
|
||||
'COLUMN', 'SubcontractingType'
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop constraint FK_DriverSub_DriverSubContact_Base_Unit
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubContact
|
||||
drop column SubUnitId
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSub
|
||||
drop column Implement
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSub
|
||||
drop column Instruction
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSub
|
||||
drop column AttachUrl
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开车分包计划Id', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSub',
|
||||
'COLUMN', 'DriverSubPlanId'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开车分包商主键', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSub',
|
||||
'COLUMN', 'DriverSubContractorsId'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'评价数据', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSub', 'COLUMN',
|
||||
'EvaluationData'
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSub
|
||||
drop constraint FK_DriverSub_DriverSub_Base_Unit
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSub
|
||||
drop column SubUnitId
|
||||
go
|
||||
exec sp_rename 'dbo.DriverSub_DriverSubPlan.DriverSubNames', SubcontractingTypes, 'COLUMN'
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'开发分包类别(多条数据用,隔开)', 'SCHEMA', 'dbo', 'TABLE',
|
||||
'DriverSub_DriverSubPlan', 'COLUMN', 'SubcontractingTypes'
|
||||
go
|
||||
|
||||
alter table dbo.DriverSub_DriverSubPlan
|
||||
add State int
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', N'状态', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubPlan', 'COLUMN',
|
||||
'State'
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
|
@ -206,6 +206,19 @@
|
|||
list[3] = new ListItem("开车队", "4");
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 开车分包状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] drpDriverSubPlanStateList()
|
||||
{
|
||||
ListItem[] list = new ListItem[3];
|
||||
list[0] = new ListItem("已招标完成", "0");
|
||||
list[1] = new ListItem("实施中", "1");
|
||||
list[2] = new ListItem("实施完成", "2");
|
||||
return list;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FineUIPro;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
@ -38,18 +40,11 @@ namespace BLL
|
|||
newDriverSubContact.DriverSubContactId = DriverSubContact.DriverSubContactId;
|
||||
newDriverSubContact.ProjectId = DriverSubContact.ProjectId;
|
||||
newDriverSubContact.Code = DriverSubContact.Code;
|
||||
newDriverSubContact.SubUnitId = DriverSubContact.SubUnitId;
|
||||
newDriverSubContact.ContactInfo = DriverSubContact.ContactInfo;
|
||||
newDriverSubContact.ChargeManInfo = DriverSubContact.ChargeManInfo;
|
||||
newDriverSubContact.ContactContent = DriverSubContact.ContactContent;
|
||||
newDriverSubContact.Result = DriverSubContact.Result;
|
||||
newDriverSubContact.IntTime = DriverSubContact.IntTime;
|
||||
newDriverSubContact.OutTime = DriverSubContact.OutTime;
|
||||
newDriverSubContact.AttachUrl = DriverSubContact.AttachUrl;
|
||||
newDriverSubContact.Remark = DriverSubContact.Remark;
|
||||
newDriverSubContact.DriverSubPlanId= DriverSubContact.DriverSubPlanId;
|
||||
newDriverSubContact.DriverSubContractorsId = DriverSubContact.DriverSubContractorsId;
|
||||
newDriverSubContact.SubcontractingType = DriverSubContact.SubcontractingType;
|
||||
newDriverSubContact.IsBidirectional = DriverSubContact.IsBidirectional;
|
||||
Funs.DB.DriverSub_DriverSubContact.InsertOnSubmit(newDriverSubContact);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
@ -64,18 +59,11 @@ namespace BLL
|
|||
if (newDriverSubContact != null)
|
||||
{
|
||||
newDriverSubContact.Code = DriverSubContact.Code;
|
||||
newDriverSubContact.SubUnitId = DriverSubContact.SubUnitId;
|
||||
newDriverSubContact.ContactInfo = DriverSubContact.ContactInfo;
|
||||
newDriverSubContact.ChargeManInfo = DriverSubContact.ChargeManInfo;
|
||||
newDriverSubContact.ContactContent = DriverSubContact.ContactContent;
|
||||
newDriverSubContact.Result = DriverSubContact.Result;
|
||||
newDriverSubContact.IntTime = DriverSubContact.IntTime;
|
||||
newDriverSubContact.OutTime = DriverSubContact.OutTime;
|
||||
newDriverSubContact.AttachUrl = DriverSubContact.AttachUrl;
|
||||
newDriverSubContact.Remark = DriverSubContact.Remark;
|
||||
newDriverSubContact.DriverSubPlanId = DriverSubContact.DriverSubPlanId;
|
||||
newDriverSubContact.DriverSubContractorsId = DriverSubContact.DriverSubContractorsId;
|
||||
newDriverSubContact.SubcontractingType = DriverSubContact.SubcontractingType;
|
||||
newDriverSubContact.IsBidirectional = DriverSubContact.IsBidirectional;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
@ -89,30 +77,87 @@ namespace BLL
|
|||
Model.DriverSub_DriverSubContact DriverSubContact = Funs.DB.DriverSub_DriverSubContact.FirstOrDefault(e => e.DriverSubContactId == DriverSubContactId);
|
||||
if (DriverSubContact != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(DriverSubContact.AttachUrl))
|
||||
{
|
||||
BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, DriverSubContact.AttachUrl);//删除附件
|
||||
}
|
||||
Funs.DB.DriverSub_DriverSubContact.DeleteOnSubmit(DriverSubContact);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据开车分包计划主键删除开车分包联络
|
||||
/// </summary>
|
||||
/// <param name="DriverSubPlanId"></param>
|
||||
public static void DeleteDriverSubContactByDriverSubPlanId(string DriverSubPlanId)
|
||||
{
|
||||
List<Model.DriverSub_DriverSubContact> DriverSubContact = Funs.DB.DriverSub_DriverSubContact.Where(e => e.DriverSubPlanId == DriverSubPlanId).ToList();
|
||||
if (DriverSubContact != null)
|
||||
if (DriverSubContact.Count>0)
|
||||
{
|
||||
foreach (var item in DriverSubContact)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.AttachUrl))
|
||||
{
|
||||
BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, item.AttachUrl);//删除附件
|
||||
}
|
||||
Funs.DB.DriverSub_DriverSubContact.DeleteOnSubmit(item);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
Funs.DB.DriverSub_DriverSubContact.DeleteAllOnSubmit(DriverSubContact);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static void InitDropListByDriverSubPlanId(string driverSubPlanId, string type, DropDownList dropDownList)
|
||||
{
|
||||
dropDownList.DataSource = from x in Funs.DB.DriverSub_DriverSubContact
|
||||
join y in Funs.DB.DriverSub_DriverSubContractors on x.DriverSubContractorsId equals y
|
||||
.DriverSubContractorsId
|
||||
where x.DriverSubPlanId== driverSubPlanId && x.SubcontractingType == type
|
||||
select new { x.DriverSubContractorsId, y.SubUnitName };
|
||||
dropDownList.DataTextField = "SubUnitName";
|
||||
dropDownList.DataValueField = "DriverSubContractorsId";
|
||||
dropDownList.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据driverSubPlanId判断是否选标完成
|
||||
/// </summary>
|
||||
/// <param name="driverSubPlanId"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsAllBidirectional(string driverSubPlanId)
|
||||
{
|
||||
//获取DriverSubPlanId对应的所有数据
|
||||
var list = Funs.DB.DriverSub_DriverSubContact.Where(e => e.DriverSubPlanId == driverSubPlanId).ToList();
|
||||
|
||||
//按SubcontractingType分组,检查每组数据是否都存在一个中标单位
|
||||
var allExist = list.GroupBy(item => item.SubcontractingType)
|
||||
.All(g => g.Any(item => item.IsBidirectional == true));
|
||||
|
||||
return allExist;
|
||||
}
|
||||
|
||||
public static Model.DriverSub_DriverSubContact GetBidirectional(string driverSubPlanId ,string subcontractingType)
|
||||
{
|
||||
return Funs.DB.DriverSub_DriverSubContact.FirstOrDefault(e => e.DriverSubPlanId == driverSubPlanId && e.IsBidirectional == true && e.SubcontractingType== subcontractingType);
|
||||
}
|
||||
//根据driverSubPlanId 和DriverSubContractorsId 确定中标单位,使其IsBidirectional为true,且当前SubcontractingType下其他为false
|
||||
/// <summary>
|
||||
/// 确定中标单位
|
||||
/// </summary>
|
||||
/// <param name="driverSubPlanId"></param>
|
||||
/// <param name="driverSubContractorsId"></param>
|
||||
public static void SetBidirectional(string driverSubPlanId, string driverSubContractorsId)
|
||||
{
|
||||
//根据driverSubPlanId 和DriverSubContractorsId 获取SubcontractingType
|
||||
var subcontractingType= Funs.DB.DriverSub_DriverSubContact.FirstOrDefault(e => e.DriverSubContractorsId == driverSubContractorsId &&e.DriverSubPlanId== driverSubPlanId
|
||||
|
||||
)?.SubcontractingType;
|
||||
var list = Funs.DB.DriverSub_DriverSubContact.Where(e => e.DriverSubPlanId == driverSubPlanId && e.SubcontractingType == subcontractingType).ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (item.DriverSubContractorsId == driverSubContractorsId)
|
||||
{
|
||||
item.IsBidirectional = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.IsBidirectional = false;
|
||||
}
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(',');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,14 +41,10 @@ namespace BLL
|
|||
newDriverSub.DriverSubId = DriverSub.DriverSubId;
|
||||
newDriverSub.ProjectId = DriverSub.ProjectId;
|
||||
newDriverSub.Code = DriverSub.Code;
|
||||
newDriverSub.SubUnitId = DriverSub.SubUnitId;
|
||||
newDriverSub.Implement = DriverSub.Implement;
|
||||
newDriverSub.Instruction = DriverSub.Instruction;
|
||||
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
||||
newDriverSub.Remark = DriverSub.Remark;
|
||||
newDriverSub.DriverSubPlanId= DriverSub.DriverSubPlanId;
|
||||
newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId;
|
||||
newDriverSub.EvaluationData = DriverSub.EvaluationData;
|
||||
newDriverSub.EvaluationData = DriverSub.EvaluationData;
|
||||
Funs.DB.DriverSub_DriverSub.InsertOnSubmit(newDriverSub);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
@ -63,10 +59,6 @@ namespace BLL
|
|||
if (newDriverSub != null)
|
||||
{
|
||||
newDriverSub.Code = DriverSub.Code;
|
||||
newDriverSub.SubUnitId = DriverSub.SubUnitId;
|
||||
newDriverSub.Implement = DriverSub.Implement;
|
||||
newDriverSub.Instruction = DriverSub.Instruction;
|
||||
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
||||
newDriverSub.Remark = DriverSub.Remark;
|
||||
newDriverSub.DriverSubPlanId = DriverSub.DriverSubPlanId;
|
||||
newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId;
|
||||
|
@ -84,10 +76,6 @@ namespace BLL
|
|||
Model.DriverSub_DriverSub DriverSub = Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubId == DriverSubId);
|
||||
if (DriverSub != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(DriverSub.AttachUrl))
|
||||
{
|
||||
BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, DriverSub.AttachUrl);//删除附件
|
||||
}
|
||||
Funs.DB.DriverSub_DriverSub.DeleteOnSubmit(DriverSub);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
@ -147,19 +135,53 @@ namespace BLL
|
|||
/// 获取初始化数据List<Model.DriverSubEvaluationData>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.DriverSubEvaluationData> GetDriverSubEvaluationData()
|
||||
public static List<Model.DriverSubEvaluationData> GetDriverSubEvaluationData(string type )
|
||||
{
|
||||
|
||||
List<Model.DriverSubEvaluationData> list = new List<Model.DriverSubEvaluationData>();
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "业主人员培训", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "编制技术方案", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "预试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "联动试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "投料试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "生产试运行", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "性能考核", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 8, Matter = "生产安全", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 9, Matter = "试车进度", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 10, Matter = "其他", Grade = "" });
|
||||
switch (type)
|
||||
{
|
||||
case "1"://催化剂装填
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "方案编制", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "催化剂装填准备", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "人员配合", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "催化剂装填实施", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "装填结果认定", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "收尾处理", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "其他", Grade = "" });
|
||||
break;
|
||||
case "2"://烘炉
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "方案编制", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "烘炉准备", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "人员配合", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "烘炉实施", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "烘炉结果认定", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "收尾处理", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "其他", Grade = "" });
|
||||
break;
|
||||
case "3"://化学清洗
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "方案编制", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "化学清洗准备", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "人员配合", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "化学清洗实施", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "清洗结果认定", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "收尾处理", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "其他", Grade = "" });
|
||||
break;
|
||||
case "4"://开车队
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "业主人员培训", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "编制技术方案", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "预试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "联动试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "投料试车", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "生产试运行", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "性能考核", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 8, Matter = "生产安全", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 9, Matter = "试车进度", Grade = "" });
|
||||
list.Add(new Model.DriverSubEvaluationData() { Number = 10, Matter = "其他", Grade = "" });
|
||||
break;
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1764,6 +1764,7 @@
|
|||
<Content Include="TestRun\DriverSub\DriverSubEdit.aspx" />
|
||||
<Content Include="TestRun\DriverSub\DriverSubPlan.aspx" />
|
||||
<Content Include="TestRun\DriverSub\DriverSubPlanEdit.aspx" />
|
||||
<Content Include="TestRun\DriverSub\DriverSubSetContactorEdit.aspx" />
|
||||
<Content Include="TestRun\DriverSummary\CompleteSummary.aspx" />
|
||||
<Content Include="TestRun\DriverSummary\CompleteSummaryEdit.aspx" />
|
||||
<Content Include="TestRun\DriverSummary\MonthSummary.aspx" />
|
||||
|
@ -15889,6 +15890,13 @@
|
|||
<Compile Include="TestRun\DriverSub\DriverSubPlanEdit.aspx.designer.cs">
|
||||
<DependentUpon>DriverSubPlanEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSub\DriverSubSetContactorEdit.aspx.cs">
|
||||
<DependentUpon>DriverSubSetContactorEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSub\DriverSubSetContactorEdit.aspx.designer.cs">
|
||||
<DependentUpon>DriverSubSetContactorEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSummary\CompleteSummary.aspx.cs">
|
||||
<DependentUpon>CompleteSummary.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<NameOfLastUsedPublishProfile>D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
@ -30,7 +31,7 @@
|
|||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<EnableENC>True</EnableENC>
|
||||
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
|
||||
<AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车分包计划" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="DriverSubPlanId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="DriverSubPlanId" AllowSorting="true" SortField="Code"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" OnRowDoubleClick="Grid1_RowDoubleClick" ForceFit="True" >
|
||||
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" ForceFit="True" >
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
|
@ -27,6 +27,9 @@
|
|||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server" Hidden="true">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSelect" Icon="ApplicationEdit" ToolTip="选标" Text="选标" EnablePostBack="True" runat="server" OnClick="btnSelect_OnClick"> </f:Button>
|
||||
<f:Button ID="btnScoring" Icon="ApplicationEdit" ToolTip="打分" Text="打分" EnablePostBack="True" runat="server" OnClick="btnScoring_OnClick"> </f:Button>
|
||||
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
|
@ -36,7 +39,7 @@
|
|||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="开车分包类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# GetDriverSubName(Eval("DriverSubNames")) %>'></asp:Label>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.DriverSubPlanService.GetSubcontractingTypeNames(Eval("SubcontractingTypes")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<%-- <f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" CommandName="AttachUrl" ColumnID="AttachUrl"
|
||||
|
|
|
@ -43,34 +43,13 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
x.InstallationNames,
|
||||
x.AttachUrl,
|
||||
x.Remark,
|
||||
x.DriverSubNames,
|
||||
x.SubcontractingTypes,
|
||||
};
|
||||
table = table.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
public string GetDriverSubName(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(',');
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页
|
||||
|
@ -220,5 +199,32 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnSelect_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubSetContactorEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
protected void btnScoring_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!DriverSubContactService.IsAllBidirectional(Grid1.SelectedRowID))
|
||||
{
|
||||
Alert.ShowInTop("请先进行选标确定中标单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -86,6 +86,24 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnSelect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSelect;
|
||||
|
||||
/// <summary>
|
||||
/// btnScoring 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnScoring;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="开车分包类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# GetDriverSubName(Eval("DriverSubNames")) %>'></asp:Label>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.DriverSubPlanService.GetSubcontractingTypeNames(Eval("SubcontractingTypes")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
|
|
|
@ -44,33 +44,12 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
x.InstallationNames,
|
||||
x.AttachUrl,
|
||||
x.Remark,
|
||||
x.DriverSubNames,
|
||||
x.SubcontractingTypes,
|
||||
};
|
||||
table = table.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
public string GetDriverSubName(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(',');
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页
|
||||
|
|
|
@ -211,7 +211,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
BindGrid(Grid2, "2", drpSubPlanCode.SelectedValue, ttbSearch2.Text);
|
||||
BindGrid(Grid3, "3", drpSubPlanCode.SelectedValue, ttbSearch3.Text);
|
||||
BindGrid(Grid4, "4", drpSubPlanCode.SelectedValue, ttbSearch4.Text);
|
||||
this.DriverSubName.SelectedValueArray = model.DriverSubNames.Split(',');
|
||||
this.DriverSubName.SelectedValueArray = model.SubcontractingTypes.Split(',');
|
||||
|
||||
|
||||
foreach (string item in DriverSubName.SelectedValueArray)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="焊接任务单"
|
||||
TitleToolTip="焊接任务单" AutoScroll="true">
|
||||
TitleToolTip="履约情况评价表" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="Number" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
var subPlanModel= DriverSubPlanService.GetDriverSubPlanById(DriverSubPlanId);
|
||||
if (subPlanModel != null)
|
||||
{
|
||||
foreach (var item in subPlanModel.DriverSubNames.Split(','))
|
||||
foreach (var item in subPlanModel.SubcontractingTypes.Split(','))
|
||||
{
|
||||
var name = DropListService.drpDriverSubNameList().Where(x => x.Value == item) .First().Text;
|
||||
FineUIPro.TreeNode node = new FineUIPro.TreeNode();
|
||||
|
@ -75,14 +75,14 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
void BindNode(TreeNode node,string type )
|
||||
{
|
||||
var SubContractorsList= DriverSubContactService.GetDriverSubContactByDriverSubPlanId(DriverSubPlanId)
|
||||
.Where(x => x.SubcontractingType == type).Select(x => x.DriverSubContractorsId).ToArray();
|
||||
.Where(x => x.SubcontractingType == type && x.IsBidirectional==true).Select(x => x.DriverSubContractorsId).ToArray();
|
||||
foreach (var item in SubContractorsList)
|
||||
{
|
||||
string unitName= BLL.DriversubcontractorsService.GetDriverSub_DriverSubContractorsById(item).SubUnitName;
|
||||
FineUIPro.TreeNode node1 = new FineUIPro.TreeNode();
|
||||
node1.NodeID = item;
|
||||
node1.Text = unitName;
|
||||
node1.CommandName = node1.Text;
|
||||
node1.CommandName = type;
|
||||
node1.EnableClickEvent=true;
|
||||
node.Nodes.Add(node1);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
}
|
||||
else
|
||||
{
|
||||
Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData();
|
||||
Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData(tvControlItem.SelectedNode.CommandName);
|
||||
Grid1.DataBind();
|
||||
|
||||
}
|
||||
|
|
|
@ -36,9 +36,12 @@
|
|||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="开车分包类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# GetDriverSubName(Eval("DriverSubNames")) %>'></asp:Label>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.DriverSubPlanService.GetSubcontractingTypeNames(Eval("SubcontractingTypes")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField ColumnID="StateName" DataField="StateName"
|
||||
FieldType="String" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center" Width="55px">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" CommandName="AttachUrl" ColumnID="AttachUrl"
|
||||
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
||||
|
||||
|
|
|
@ -26,63 +26,13 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
//加载列表
|
||||
public void BindGrid()
|
||||
{
|
||||
//string strSql = @"SELECT subPlan.DriverSubPlanId,
|
||||
// subPlan.ProjectId,
|
||||
// subPlan.Code,
|
||||
// subPlan.SubUnitId,
|
||||
// subPlan.Introductions,
|
||||
// subPlan.Achievement,
|
||||
// subPlan.Cooperation,
|
||||
// subPlan.InstallationIds,
|
||||
// subPlan.InstallationNames,
|
||||
// (CASE WHEN subPlan.IsInvited=1 THEN '是' ELSE '否' END) AS IsInvitedName,
|
||||
// subPlan.AttachUrl,
|
||||
// subPlan.Remark,
|
||||
// Unit.UnitName AS SubUnitName"
|
||||
// + @" FROM DriverSub_DriverSubPlan AS subPlan"
|
||||
// + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = subPlan.SubUnitId WHERE subPlan.ProjectId=@projectId";
|
||||
//List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
//listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
|
||||
//if (!string.IsNullOrEmpty(this.drpSubUnitId.SelectedValue)&&this.drpSubUnitId.SelectedValue!=BLL.Const._Null)
|
||||
//{
|
||||
// strSql += " AND subPlan.SubUnitId=@subUnitId";
|
||||
// listStr.Add(new SqlParameter("@subUnitId", this.drpSubUnitId.SelectedValue));
|
||||
//}
|
||||
//SqlParameter[] parameter = listStr.ToArray();
|
||||
//DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
//Grid1.RecordCount = tb.Rows.Count;
|
||||
////tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
||||
//Grid1.DataSource = table;
|
||||
//Grid1.DataBind();
|
||||
|
||||
Model.DriverSub_DriverSubPlan querymodel = new Model.DriverSub_DriverSubPlan();
|
||||
querymodel.ProjectId = this.CurrUser.LoginProjectId;
|
||||
Grid1.DataSource = DriverSubPlanService.GetListData(querymodel, Grid1);
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
public string GetDriverSubName(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(',');
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页
|
||||
|
|
|
@ -40,51 +40,14 @@
|
|||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpSubUnitId" runat="server" Label="开车分包单位" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtIntroductions" runat="server" Label="企业情况简介" LabelAlign="Right" LabelWidth="150px" MaxLength="1000">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAchievement" runat="server" Label="类似操作业绩" LabelAlign="Right" LabelWidth="150px" MaxLength="1000">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCooperation" runat="server" Label="与五环合作历史" LabelAlign="Right" LabelWidth="150px" MaxLength="1000">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnitWorkIds" runat="server" Label="意向分包装置或单元" LabelAlign="Right" LabelWidth="150px" EnableMultiSelect="true" EnableCheckBoxSelect="true"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList ID="rblIsInvited" runat="server" Label="是否拟邀" LabelAlign="Right" LabelWidth="150px">
|
||||
<f:RadioItem Value="True" Text="是" Selected="true" />
|
||||
<f:RadioItem Value="False" Text="否" />
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow runat="server">
|
||||
<Items>
|
||||
<f:CheckBoxList ID="DriverSubName" Label="开车分包类别" runat="server" LabelAlign="Right" LabelWidth="150px" Required="True" ShowRedStar="True" ></f:CheckBoxList>
|
||||
<f:CheckBoxList ID="SubcontractingTypes" Label="开车分包类别" runat="server" LabelAlign="Right" LabelWidth="150px" Required="True" ShowRedStar="True" ></f:CheckBoxList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server">
|
||||
<Items>
|
||||
<f:dropdownlist ID="drpstate" Label="分包状态" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true" runat="server" ></f:dropdownlist>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server">
|
||||
|
|
|
@ -18,10 +18,15 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
//BLL.UnitService.InitUnitDownList(this.drpSubUnitId, this.CurrUser.LoginProjectId, true);
|
||||
//BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkIds, this.CurrUser.LoginProjectId, true);
|
||||
string id = Request.Params["id"];
|
||||
DriverSubName.DataSource=DropListService.drpDriverSubNameList();
|
||||
DriverSubName.DataTextField = "Text";
|
||||
DriverSubName.DataValueField = "Value";
|
||||
DriverSubName.DataBind();
|
||||
SubcontractingTypes.DataSource=DropListService.drpDriverSubNameList();
|
||||
SubcontractingTypes.DataTextField = "Text";
|
||||
SubcontractingTypes.DataValueField = "Value";
|
||||
SubcontractingTypes.DataBind();
|
||||
|
||||
drpstate.DataSource = DropListService.drpDriverSubPlanStateList();
|
||||
drpstate.DataTextField = "Text";
|
||||
drpstate.DataValueField = "Value";
|
||||
drpstate.DataBind();
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
Model.DriverSub_DriverSubPlan data = BLL.DriverSubPlanService.GetDriverSubPlanById(id);
|
||||
|
@ -29,7 +34,8 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
{
|
||||
this.hdId.Text = id;
|
||||
this.txtCode.Text = data.Code;
|
||||
this.DriverSubName.SelectedValueArray= data.DriverSubNames.Split(',');
|
||||
this.SubcontractingTypes.SelectedValueArray= data.SubcontractingTypes.Split(',');
|
||||
this.drpstate.SelectedValue= data.State.ToString();
|
||||
//if (!string.IsNullOrEmpty(data.SubUnitId))
|
||||
//{
|
||||
// this.drpSubUnitId.SelectedValue = data.SubUnitId;
|
||||
|
@ -70,41 +76,12 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
//if (this.drpSubUnitId.SelectedValue==BLL.Const._Null)
|
||||
//{
|
||||
// Alert.ShowInTop("请选择开车分包单位!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
|
||||
string id = Request.Params["id"];
|
||||
Model.DriverSub_DriverSubPlan newData = new Model.DriverSub_DriverSubPlan();
|
||||
newData.Code = this.txtCode.Text.Trim();
|
||||
newData.DriverSubNames= GetStringByArray(this.DriverSubName.SelectedValueArray);
|
||||
//if (this.drpSubUnitId.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// newData.SubUnitId = this.drpSubUnitId.SelectedValue;
|
||||
//}
|
||||
//newData.Introductions = this.txtIntroductions.Text.Trim();
|
||||
//newData.Achievement = this.txtAchievement.Text.Trim();
|
||||
//newData.Cooperation = this.txtCooperation.Text.Trim();
|
||||
//if (!string.IsNullOrEmpty(this.drpUnitWorkIds.SelectedValue))
|
||||
//{
|
||||
// newData.InstallationIds = GetStringByArray(this.drpUnitWorkIds.SelectedValueArray);
|
||||
// string unitWorkNames = string.Empty;
|
||||
// foreach (var item in this.drpUnitWorkIds.SelectedValueArray)
|
||||
// {
|
||||
// var unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(item);
|
||||
// if (unitWork!=null)
|
||||
// {
|
||||
// unitWorkNames += unitWork.UnitWorkName + ",";
|
||||
// }
|
||||
// }
|
||||
// if (!string.IsNullOrEmpty(unitWorkNames))
|
||||
// {
|
||||
// newData.InstallationNames = unitWorkNames.Substring(0, unitWorkNames.LastIndexOf(","));
|
||||
// }
|
||||
//}
|
||||
//newData.IsInvited = Convert.ToBoolean(this.rblIsInvited.SelectedValue);
|
||||
//newData.Remark = this.txtRemark.Text.Trim();
|
||||
newData.SubcontractingTypes = GetStringByArray(this.SubcontractingTypes.SelectedValueArray);
|
||||
newData.State = int.Parse(drpstate.SelectedValue);
|
||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
|
|
|
@ -114,13 +114,22 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
|||
protected global::FineUIPro.TextBox txtCode;
|
||||
|
||||
/// <summary>
|
||||
/// DriverSubName 控件。
|
||||
/// SubcontractingTypes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBoxList DriverSubName;
|
||||
protected global::FineUIPro.CheckBoxList SubcontractingTypes;
|
||||
|
||||
/// <summary>
|
||||
/// drpstate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpstate;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSubSetContactorEdit.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSub.DriverSubSetContactorEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>编辑开车分包联络</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" Size="Medium">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpCatalystLoading" AutoSelectFirstItem="false" EmptyText="请从下拉选项中选择" MatchFieldWidth="false" Label="催化剂装填" LabelWidth="130px" LabelAlign="Right" Required="True" ShowRedStar="True" Hidden="True">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpOven" AutoSelectFirstItem="false" EmptyText="请从下拉选项中选择" MatchFieldWidth="false" Label="烘炉" LabelWidth="130px" LabelAlign="Right" Required="True" ShowRedStar="True" Hidden="True">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpChemicalCleaning" AutoSelectFirstItem="false" EmptyText="请从下拉选项中选择" MatchFieldWidth="false" Label="化学清洗" LabelWidth="130px" LabelAlign="Right" Required="True" ShowRedStar="True" Hidden="True">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpDrivingTeam" AutoSelectFirstItem="false" EmptyText="请从下拉选项中选择" MatchFieldWidth="false" Label="开车队" LabelWidth="130px" LabelAlign="Right" Required="True" ShowRedStar="True" Hidden="True">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,93 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverSub
|
||||
{
|
||||
public partial class DriverSubSetContactorEdit : PageBase
|
||||
{
|
||||
public string DriverSubPlanId
|
||||
{
|
||||
get { return (string)ViewState["DriverSubPlanId"]; }
|
||||
set { ViewState["DriverSubPlanId"] = value; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
DriverSubPlanId = Request.Params["DriverSubPlanId"];
|
||||
Bind();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Save()
|
||||
{
|
||||
DriverSubContactService.SetBidirectional(DriverSubPlanId, drpCatalystLoading.SelectedValue);
|
||||
DriverSubContactService.SetBidirectional(DriverSubPlanId, drpOven.SelectedValue);
|
||||
DriverSubContactService.SetBidirectional(DriverSubPlanId, drpChemicalCleaning.SelectedValue);
|
||||
DriverSubContactService.SetBidirectional(DriverSubPlanId, drpDrivingTeam.SelectedValue);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
void Bind()
|
||||
{
|
||||
var model = BLL.DriverSubPlanService.GetDriverSubPlanById(DriverSubPlanId);
|
||||
if (model != null)
|
||||
{
|
||||
|
||||
var subcontractingtypeList= model.SubcontractingTypes.Split(',');
|
||||
|
||||
|
||||
foreach (string item in subcontractingtypeList)
|
||||
{
|
||||
if (item.Contains("1"))
|
||||
{
|
||||
drpCatalystLoading.Hidden = false;
|
||||
DriverSubContactService.InitDropListByDriverSubPlanId(DriverSubPlanId,item, drpCatalystLoading);
|
||||
drpCatalystLoading.SelectedValue = DriverSubContactService
|
||||
.GetBidirectional(DriverSubPlanId, "1")?.DriverSubContractorsId;
|
||||
|
||||
|
||||
}
|
||||
else if (item.Contains("2"))
|
||||
{
|
||||
drpOven.Hidden = false;
|
||||
DriverSubContactService.InitDropListByDriverSubPlanId(DriverSubPlanId, item, drpOven);
|
||||
drpOven.SelectedValue = DriverSubContactService
|
||||
.GetBidirectional(DriverSubPlanId, "2")?.DriverSubContractorsId;
|
||||
}
|
||||
else if (item.Contains("3"))
|
||||
{
|
||||
drpChemicalCleaning.Hidden = false;
|
||||
DriverSubContactService.InitDropListByDriverSubPlanId(DriverSubPlanId, item, drpChemicalCleaning);
|
||||
drpChemicalCleaning.SelectedValue = DriverSubContactService
|
||||
.GetBidirectional(DriverSubPlanId, "3")?.DriverSubContractorsId;
|
||||
}
|
||||
else if (item.Contains("4"))
|
||||
{
|
||||
drpDrivingTeam.Hidden = false;
|
||||
DriverSubContactService.InitDropListByDriverSubPlanId(DriverSubPlanId, item, drpDrivingTeam);
|
||||
drpDrivingTeam.SelectedValue = DriverSubContactService
|
||||
.GetBidirectional(DriverSubPlanId, "4")?.DriverSubContractorsId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
Save();
|
||||
}
|
||||
}
|
||||
}
|
125
SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubSetContactorEdit.aspx.designer.cs
generated
Normal file
125
SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubSetContactorEdit.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,125 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverSub
|
||||
{
|
||||
|
||||
|
||||
public partial class DriverSubSetContactorEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// drpCatalystLoading 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCatalystLoading;
|
||||
|
||||
/// <summary>
|
||||
/// drpOven 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpOven;
|
||||
|
||||
/// <summary>
|
||||
/// drpChemicalCleaning 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpChemicalCleaning;
|
||||
|
||||
/// <summary>
|
||||
/// drpDrivingTeam 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpDrivingTeam;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -11,8 +11,8 @@
|
|||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
|
||||
<add key="ConnectionString" value="Server=DESKTOP-1QITK9E\MSSQLSERVER2;Database=SGGLDB;Integrated Security=False;User ID=sa;Password=123;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
||||
<!--<add key="ConnectionString" value="Server=DESKTOP-1QITK9E\MSSQLSERVER2;Database=SGGLDB;Integrated Security=False;User ID=sa;Password=123;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
|
|
1560
SGGL/Model/Model.cs
1560
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue