2024-02-04 试车分包管理添加
This commit is contained in:
parent
fdbca52cf2
commit
a43e2cde43
Binary file not shown.
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
alter table DriverSub_DriverSub add DriverSubPlanId nvarchar(50);
|
||||||
|
go
|
||||||
|
alter table DriverSub_DriverSub add DriverSubContractorsId nvarchar(50);
|
||||||
|
go
|
||||||
|
alter table DriverSub_DriverSub add EvaluationData nvarchar(2000);
|
|
@ -20,7 +20,17 @@ namespace BLL
|
||||||
{
|
{
|
||||||
return Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubId == DriverSubId);
|
return Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubId == DriverSubId);
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="DriverSubPlanId"></param>
|
||||||
|
/// <param name="DriverSubContractorsId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.DriverSub_DriverSub GetDriverSubBySubPlanIdAndTractorsId(string DriverSubPlanId,
|
||||||
|
string DriverSubContractorsId)
|
||||||
|
{
|
||||||
|
return Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId&& e.DriverSubContractorsId==DriverSubContractorsId);
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加开车分包管理信息
|
/// 添加开车分包管理信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +46,9 @@ namespace BLL
|
||||||
newDriverSub.Instruction = DriverSub.Instruction;
|
newDriverSub.Instruction = DriverSub.Instruction;
|
||||||
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
||||||
newDriverSub.Remark = DriverSub.Remark;
|
newDriverSub.Remark = DriverSub.Remark;
|
||||||
|
newDriverSub.DriverSubPlanId= DriverSub.DriverSubPlanId;
|
||||||
|
newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId;
|
||||||
|
newDriverSub.EvaluationData = DriverSub.EvaluationData;
|
||||||
Funs.DB.DriverSub_DriverSub.InsertOnSubmit(newDriverSub);
|
Funs.DB.DriverSub_DriverSub.InsertOnSubmit(newDriverSub);
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
@ -55,6 +68,9 @@ namespace BLL
|
||||||
newDriverSub.Instruction = DriverSub.Instruction;
|
newDriverSub.Instruction = DriverSub.Instruction;
|
||||||
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
newDriverSub.AttachUrl = DriverSub.AttachUrl;
|
||||||
newDriverSub.Remark = DriverSub.Remark;
|
newDriverSub.Remark = DriverSub.Remark;
|
||||||
|
newDriverSub.DriverSubPlanId = DriverSub.DriverSubPlanId;
|
||||||
|
newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId;
|
||||||
|
newDriverSub.EvaluationData = DriverSub.EvaluationData;
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,5 +92,76 @@ namespace BLL
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//DriverSubPlanId和DriverSubContractorsId 获取对象的EvaluationData信息,将json数据EvaluationData 转换成List<Model.DriverSubEvaluationData>
|
||||||
|
public static List<Model.DriverSubEvaluationData> GetDriverSubEvaluationData(string DriverSubPlanId,
|
||||||
|
string DriverSubContractorsId)
|
||||||
|
{
|
||||||
|
List<Model.DriverSubEvaluationData> list = new List<Model.DriverSubEvaluationData>();
|
||||||
|
Model.DriverSub_DriverSub data = Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId && e.DriverSubContractorsId == DriverSubContractorsId);
|
||||||
|
if (data != null)
|
||||||
|
{
|
||||||
|
list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.DriverSubEvaluationData>>(data.EvaluationData);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
//将List<Model.DriverSubEvaluationData>转换成json数据
|
||||||
|
public static string GetDriverSubEvaluationDataJson(List<Model.DriverSubEvaluationData> list)
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
//DriverSubPlanId和DriverSubContractorsId 删除数据
|
||||||
|
public static void DeleteDriverSubEvaluationData(string DriverSubPlanId, string DriverSubContractorsId)
|
||||||
|
{
|
||||||
|
Model.DriverSub_DriverSub data = Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId && e.DriverSubContractorsId == DriverSubContractorsId);
|
||||||
|
if (data != null)
|
||||||
|
{
|
||||||
|
data.EvaluationData = "";
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据DriverSubPlanId删除实体
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="DriverSubPlanId"></param>
|
||||||
|
public static void DeleteDriverSubByDriverSubPlanId(string DriverSubPlanId)
|
||||||
|
{
|
||||||
|
var list = Funs.DB.DriverSub_DriverSub.Where(e => e.DriverSubPlanId == DriverSubPlanId).ToList();
|
||||||
|
//先删除对应附件
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(item.DriverSubId))
|
||||||
|
{
|
||||||
|
AttachFileService.DeleteAttachFile(Funs.RootPath, item.DriverSubId, Const.DriverSubMenuId);//删除附件
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (list.Count > 0)
|
||||||
|
{
|
||||||
|
Funs.DB.DriverSub_DriverSub.DeleteAllOnSubmit(list);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取初始化数据List<Model.DriverSubEvaluationData>
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static List<Model.DriverSubEvaluationData> GetDriverSubEvaluationData()
|
||||||
|
{
|
||||||
|
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 = "" });
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1756,7 +1756,7 @@
|
||||||
<Content Include="TestRun\DriverSub\DriverSub.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSub.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubContact.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubContact.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubContactEdit.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubContactEdit.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubContactIn.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubContactorIn.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubContactorEdit.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubContactorEdit.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubContactorList.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubContactorList.aspx" />
|
||||||
<Content Include="TestRun\DriverSub\DriverSubEdit.aspx" />
|
<Content Include="TestRun\DriverSub\DriverSubEdit.aspx" />
|
||||||
|
@ -15823,12 +15823,12 @@
|
||||||
<Compile Include="TestRun\DriverSub\DriverSubContactEdit.aspx.designer.cs">
|
<Compile Include="TestRun\DriverSub\DriverSubContactEdit.aspx.designer.cs">
|
||||||
<DependentUpon>DriverSubContactEdit.aspx</DependentUpon>
|
<DependentUpon>DriverSubContactEdit.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="TestRun\DriverSub\DriverSubContactIn.aspx.cs">
|
<Compile Include="TestRun\DriverSub\DriverSubContactorIn.aspx.cs">
|
||||||
<DependentUpon>DriverSubContactIn.aspx</DependentUpon>
|
<DependentUpon>DriverSubContactorIn.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="TestRun\DriverSub\DriverSubContactIn.aspx.designer.cs">
|
<Compile Include="TestRun\DriverSub\DriverSubContactorIn.aspx.designer.cs">
|
||||||
<DependentUpon>DriverSubContactIn.aspx</DependentUpon>
|
<DependentUpon>DriverSubContactorIn.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="TestRun\DriverSub\DriverSubContactorEdit.aspx.cs">
|
<Compile Include="TestRun\DriverSub\DriverSubContactorEdit.aspx.cs">
|
||||||
<DependentUpon>DriverSubContactorEdit.aspx</DependentUpon>
|
<DependentUpon>DriverSubContactorEdit.aspx</DependentUpon>
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
|
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
|
||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车分包管理" EnableCollapse="true"
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车分包计划" EnableCollapse="true"
|
||||||
runat="server" BoxFlex="1" DataKeyNames="DriverSubId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="DriverSubId" AllowSorting="true" SortField="Code"
|
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"
|
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">
|
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" OnRowDoubleClick="Grid1_RowDoubleClick" ForceFit="True" >
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
<Items>
|
<Items>
|
||||||
<f:DropDownList ID="drpSubUnitId" runat="server" Label="开车分包单位" LabelAlign="Right" LabelWidth="130px" Width="400px"></f:DropDownList>
|
<f:DropDownList ID="drpSubUnitId" runat="server" Label="开车分包单位" LabelAlign="Right" LabelWidth="130px" Width="400px" Hidden="True"></f:DropDownList>
|
||||||
<f:Button ID="btnSearch" Icon="SystemSearch" ToolTip="搜索"
|
<f:Button ID="btnSearch" Icon="SystemSearch" ToolTip="搜索"
|
||||||
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
|
EnablePostBack="true" runat="server" OnClick="btnSearch_Click" Hidden="True">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server" Hidden="true">
|
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server" Hidden="true">
|
||||||
|
@ -32,26 +32,19 @@
|
||||||
</Toolbars>
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RenderField ColumnID="Code" DataField="Code"
|
<f:RenderField ColumnID="Code" DataField="Code"
|
||||||
FieldType="String" HeaderText="序号" HeaderTextAlign="Center" Width="55px">
|
FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="Center" Width="55px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Implement" DataField="Implement"
|
<f:TemplateField HeaderText="开车分包类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
FieldType="String" HeaderText="记录/报告/执行情况" HeaderTextAlign="Center" Width="200px">
|
<ItemTemplate>
|
||||||
</f:RenderField>
|
<asp:Label ID="Label1" runat="server" Text='<%# GetDriverSubName(Eval("DriverSubNames")) %>'></asp:Label>
|
||||||
<f:RenderField ColumnID="SubUnitName" DataField="SubUnitName"
|
</ItemTemplate>
|
||||||
FieldType="String" HeaderText="开车分包单位名称" HeaderTextAlign="Center" Width="250px">
|
</f:TemplateField>
|
||||||
</f:RenderField>
|
<%-- <f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" CommandName="AttachUrl" ColumnID="AttachUrl"
|
||||||
<f:RenderField ColumnID="Instruction" DataField="Instruction"
|
|
||||||
FieldType="String" HeaderText="情况说明" HeaderTextAlign="Center" Width="200px" ExpandUnusedSpace="true">
|
|
||||||
</f:RenderField>
|
|
||||||
<f:RenderField ColumnID="Remark" DataField="Remark"
|
|
||||||
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px" ExpandUnusedSpace="true">
|
|
||||||
</f:RenderField>
|
|
||||||
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
|
|
||||||
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
||||||
|
--%>
|
||||||
|
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
<Listeners>
|
|
||||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
|
||||||
</Listeners>
|
|
||||||
<PageItems>
|
<PageItems>
|
||||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
</f:ToolbarSeparator>
|
</f:ToolbarSeparator>
|
||||||
|
@ -68,15 +61,15 @@
|
||||||
</f:Grid>
|
</f:Grid>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
<f:Window ID="Window1" Title="开车分包管理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<f:Window ID="Window1" Title="开车分包情况" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
Width="900px" Height="520px">
|
Width="1000px" Height="700px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||||
Height="500px">
|
Height="500px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Menu ID="Menu1" runat="server">
|
<%-- <f:Menu ID="Menu1" runat="server" Hidden="True">
|
||||||
<Items>
|
<Items>
|
||||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click">
|
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
|
@ -84,19 +77,8 @@
|
||||||
OnClick="btnMenuDel_Click">
|
OnClick="btnMenuDel_Click">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Menu>
|
</f:Menu>--%>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
var menuID = '<%= Menu1.ClientID %>';
|
|
||||||
|
|
||||||
// 返回false,来阻止浏览器右键菜单
|
|
||||||
function onRowContextMenu(event, rowId) {
|
|
||||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function reloadGrid() {
|
|
||||||
__doPostBack(null, 'reloadGrid');
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -26,32 +26,51 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
//加载列表
|
//加载列表
|
||||||
public void BindGrid()
|
public void BindGrid()
|
||||||
{
|
{
|
||||||
string strSql = @"SELECT sub.DriverSubId,
|
var q = from x in Funs.DB.DriverSub_DriverSubContact
|
||||||
sub.ProjectId,
|
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||||
sub.Code,
|
select x.DriverSubPlanId;
|
||||||
sub.SubUnitId,
|
var table = from x in Funs.DB.DriverSub_DriverSubPlan
|
||||||
sub.Implement,
|
where x.ProjectId == this.CurrUser.LoginProjectId && q.Contains(x.DriverSubPlanId)
|
||||||
sub.Instruction,
|
select new
|
||||||
sub.AttachUrl,
|
|
||||||
sub.Remark,
|
|
||||||
Unit.UnitName AS SubUnitName"
|
|
||||||
+ @" FROM DriverSub_DriverSub AS sub"
|
|
||||||
+ @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = sub.SubUnitId WHERE sub.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 sub.SubUnitId=@subUnitId";
|
x.DriverSubPlanId,
|
||||||
listStr.Add(new SqlParameter("@subUnitId", this.drpSubUnitId.SelectedValue));
|
x.Code,
|
||||||
}
|
x.SubUnitId,
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
x.Introductions,
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
x.Achievement,
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
x.Cooperation,
|
||||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
x.InstallationIds,
|
||||||
var table = this.GetPagedDataTable(Grid1, tb);
|
x.InstallationNames,
|
||||||
|
x.AttachUrl,
|
||||||
|
x.Remark,
|
||||||
|
x.DriverSubNames,
|
||||||
|
};
|
||||||
|
table = table.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize);
|
||||||
Grid1.DataSource = table;
|
Grid1.DataSource = table;
|
||||||
Grid1.DataBind();
|
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
|
#endregion
|
||||||
|
|
||||||
#region 分页
|
#region 分页
|
||||||
|
@ -125,6 +144,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
EditData();
|
EditData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 编辑
|
/// 编辑
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -135,7 +155,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?id={0}", Grid1.SelectedRowID, "编辑 - ")));
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -147,10 +167,10 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||||
{
|
{
|
||||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||||
var info = BLL.DriverSubService.GetDriverSubById(rowID);
|
var info = BLL.DriverSubPlanService.GetDriverSubPlanById(rowID);
|
||||||
if (info != null)
|
if (info != null)
|
||||||
{
|
{
|
||||||
BLL.DriverSubService.DeleteDriverSub(rowID);
|
BLL.DriverSubPlanService.DeleteDriverSubPlanById(rowID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BindGrid();
|
BindGrid();
|
||||||
|
@ -170,7 +190,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
|
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||||
if (e.CommandName == "AttachUrl")
|
if (e.CommandName == "AttachUrl")
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSub&menuId={1}", id, BLL.Const.DriverSubMenuId)));
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSubPlan&menuId={1}", id, BLL.Const.DriverSubMenuId)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -184,19 +204,19 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DriverSubMenuId);
|
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DriverSubMenuId);
|
||||||
if (buttonList.Count() > 0)
|
if (buttonList.Count() > 0)
|
||||||
{
|
{
|
||||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
//if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||||
{
|
//{
|
||||||
this.btnNew.Hidden = false;
|
// this.btnNew.Hidden = false;
|
||||||
}
|
//}
|
||||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
//if (buttonList.Contains(BLL.Const.BtnModify))
|
||||||
{
|
//{
|
||||||
this.btnMenuModify.Hidden = false;
|
// this.btnMenuModify.Hidden = false;
|
||||||
this.Grid1.EnableRowDoubleClickEvent = true;
|
// this.Grid1.EnableRowDoubleClickEvent = true;
|
||||||
}
|
//}
|
||||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
//if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||||
{
|
//{
|
||||||
this.btnMenuDel.Hidden = false;
|
// this.btnMenuDel.Hidden = false;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
// </自动生成>
|
// </自动生成>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace FineUIPro.Web.TestRun.DriverSub {
|
namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
public partial class DriverSub {
|
public partial class DriverSub
|
||||||
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// form1 控件。
|
/// form1 控件。
|
||||||
|
@ -84,6 +86,15 @@ namespace FineUIPro.Web.TestRun.DriverSub {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnNew;
|
protected global::FineUIPro.Button btnNew;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -128,32 +139,5 @@ namespace FineUIPro.Web.TestRun.DriverSub {
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window WindowAtt;
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Menu1 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Menu Menu1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuModify 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnMenuDel 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.MenuButton btnMenuDel;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
where x.ProjectId == this.CurrUser.LoginProjectId && q.Contains(x.DriverSubPlanId)
|
where x.ProjectId == this.CurrUser.LoginProjectId && q.Contains(x.DriverSubPlanId)
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
|
||||||
x.DriverSubPlanId,
|
x.DriverSubPlanId,
|
||||||
x.Code,
|
x.Code,
|
||||||
x.SubUnitId,
|
x.SubUnitId,
|
||||||
|
@ -165,11 +166,9 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||||
{
|
{
|
||||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||||
var info = BLL.DriverSubContactService.GetDriverSubContactById(rowID);
|
BLL.DriverSubContactService.DeleteDriverSubContactByDriverSubPlanId(rowID);
|
||||||
if (info != null)
|
BLL.DriverSubService.DeleteDriverSubByDriverSubPlanId(rowID); //删除分包管理打分信息
|
||||||
{
|
|
||||||
BLL.DriverSubContactService.DeleteDriverSubContactById(rowID);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
BindGrid();
|
BindGrid();
|
||||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSubContactIn.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSub.DriverSubContactIn" %>
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSubContactorIn.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSub.DriverSubContactorIn" %>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
|
@ -11,7 +11,7 @@ using System.Web.UI.WebControls;
|
||||||
|
|
||||||
namespace FineUIPro.Web.TestRun.DriverSub
|
namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
{
|
{
|
||||||
public partial class DriverSubContactIn : PageBase
|
public partial class DriverSubContactorIn : PageBase
|
||||||
{
|
{
|
||||||
public string ContractId
|
public string ContractId
|
||||||
{
|
{
|
|
@ -11,7 +11,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public partial class DriverSubContactIn
|
public partial class DriverSubContactorIn
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
|
@ -250,7 +250,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
|
|
||||||
protected void btnImport_Click(object sender, EventArgs e)
|
protected void btnImport_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubContactIn.aspx", "编辑 - ")));
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubContactorIn.aspx", "编辑 - ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -4,88 +4,75 @@
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head runat="server">
|
<head runat="server">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
||||||
<title>开车分包管理</title>
|
<title>开车分包管理</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form id="form1" runat="server">
|
<form id="form1" runat="server">
|
||||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
|
||||||
<Toolbars>
|
|
||||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
|
||||||
<Items>
|
<Items>
|
||||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||||
</f:ToolbarFill>
|
EnableCollapse="False" Width="250px" Title="WBS目录"
|
||||||
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1">
|
ShowBorder="true" Layout="VBox" ShowHeader="False" AutoScroll="true" BodyPadding="5px"
|
||||||
</f:Button>
|
IconFont="ArrowCircleLeft">
|
||||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
<Items>
|
||||||
</f:HiddenField>
|
<f:Tree ID="tvControlItem" ShowHeader="false" Height="650px" Title="开车分包商" runat="server" ShowBorder="false" EnableCollapse="true"
|
||||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
EnableSingleClickExpand="true" AutoLeafIdentification="true" EnableSingleExpand="true" AutoScroll="True"
|
||||||
|
EnableTextSelection="true" OnNodeCommand="tvControlItem_NodeCommand" EnableExpandEvent="true" >
|
||||||
|
|
||||||
|
</f:Tree>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Toolbar>
|
</f:Panel>
|
||||||
</Toolbars>
|
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||||
<Rows>
|
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="焊接任务单"
|
||||||
<f:FormRow>
|
TitleToolTip="焊接任务单" AutoScroll="true">
|
||||||
<Items>
|
<Items>
|
||||||
<f:ContentPanel ID="ContentPanel2" ShowBorder="true"
|
<f:Grid ID="Grid1" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="false" AutoScroll="true"
|
runat="server" DataKeyNames="Number" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||||
runat="server">
|
EnableColumnLines="true" DataIDField="Number" Height="450px">
|
||||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
<Columns>
|
||||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
<f:RenderField ColumnID="Number" DataField="Number" FieldType="String" Width="5px"
|
||||||
<Rows>
|
HeaderText="序号" HeaderTextAlign="Center">
|
||||||
<f:FormRow>
|
</f:RenderField>
|
||||||
<Items>
|
<f:RenderField ColumnID="Matter" DataField="Matter" FieldType="String" Width="50px"
|
||||||
<f:DropDownList ID="drpImplement" runat="server" Label="记录/报告/执行情况" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpImplement_SelectedIndexChanged"></f:DropDownList>
|
HeaderText="事项" HeaderTextAlign="Center">
|
||||||
</Items>
|
</f:RenderField>
|
||||||
</f:FormRow>
|
<f:RenderField ColumnID="Grade" DataField="Grade" FieldType="String"
|
||||||
<f:FormRow>
|
HeaderText="打分" HeaderTextAlign="Center">
|
||||||
<Items>
|
<Editor>
|
||||||
<f:TextBox ID="txtCode" runat="server" Label="序号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Readonly="true">
|
<f:TextBox ID="txtGrade" runat="server"></f:TextBox>
|
||||||
</f:TextBox>
|
</Editor>
|
||||||
</Items>
|
</f:RenderField>
|
||||||
</f:FormRow>
|
</Columns>
|
||||||
<f:FormRow>
|
</f:Grid>
|
||||||
<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:TextArea ID="txtInstruction" runat="server" Label="情况说明" LabelAlign="Right" LabelWidth="150px" MaxLength="500">
|
|
||||||
</f:TextArea>
|
|
||||||
</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:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
|
||||||
<Items>
|
|
||||||
<f:Label ID="lblAttach" runat="server" Label="上传附件"
|
|
||||||
LabelWidth="150px">
|
|
||||||
</f:Label>
|
|
||||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
<Toolbars>
|
||||||
</Rows>
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
</f:Form>
|
<Items>
|
||||||
</f:ContentPanel>
|
<f:ToolbarFill runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
|
||||||
|
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存" ValidateForms="SimpleForm1" Size="Medium"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" Size="Medium">
|
||||||
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:Toolbar>
|
||||||
</Rows>
|
</Toolbars>
|
||||||
</f:Form>
|
</f:Panel>
|
||||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||||
Height="500px">
|
Height="500px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,10 +1,37 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace FineUIPro.Web.TestRun.DriverSub
|
namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
{
|
{
|
||||||
public partial class DriverSubEdit :PageBase
|
public partial class DriverSubEdit :PageBase
|
||||||
{
|
{
|
||||||
|
public string DriverSubPlanId {
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["DriverSubPlanId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["DriverSubPlanId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public string DriverSubId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["DriverSubId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["DriverSubId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#region 加载
|
#region 加载
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 页面加载
|
/// 页面加载
|
||||||
|
@ -15,37 +42,76 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.UnitService.InitUnitDownList(this.drpSubUnitId, this.CurrUser.LoginProjectId, true);
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
this.drpImplement.DataTextField = "Text";
|
DriverSubPlanId = Request.Params["DriverSubPlanId"];
|
||||||
this.drpImplement.DataValueField = "Value";
|
if (!string.IsNullOrEmpty(DriverSubPlanId))
|
||||||
this.drpImplement.DataSource = BLL.DropListService.drpImplementItemList();
|
|
||||||
this.drpImplement.DataBind();
|
|
||||||
Funs.FineUIPleaseSelect(this.drpImplement);
|
|
||||||
|
|
||||||
string id = Request.Params["id"];
|
|
||||||
if (!string.IsNullOrEmpty(id))
|
|
||||||
{
|
{
|
||||||
Model.DriverSub_DriverSub data = BLL.DriverSubService.GetDriverSubById(id);
|
InitTreeMenu();
|
||||||
if (data != null)
|
|
||||||
{
|
|
||||||
this.hdId.Text = id;
|
|
||||||
this.txtCode.Text = data.Code;
|
|
||||||
if (!string.IsNullOrEmpty(data.SubUnitId))
|
|
||||||
{
|
|
||||||
this.drpSubUnitId.SelectedValue = data.SubUnitId;
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(data.Code))
|
|
||||||
{
|
|
||||||
this.drpImplement.SelectedValue = data.Code;
|
|
||||||
}
|
|
||||||
this.txtInstruction.Text = data.Instruction;
|
|
||||||
this.txtRemark.Text = data.Remark;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
var subPlanModel= DriverSubPlanService.GetDriverSubPlanById(DriverSubPlanId);
|
||||||
|
if (subPlanModel != null)
|
||||||
|
{
|
||||||
|
foreach (var item in subPlanModel.DriverSubNames.Split(','))
|
||||||
|
{
|
||||||
|
var name = DropListService.drpDriverSubNameList().Where(x => x.Value == item) .First().Text;
|
||||||
|
FineUIPro.TreeNode node = new FineUIPro.TreeNode();
|
||||||
|
node.NodeID = item;
|
||||||
|
node.Text = name;
|
||||||
|
node.CommandName = name;
|
||||||
|
node.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(node);
|
||||||
|
BindNode(node, item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void BindNode(TreeNode node,string type )
|
||||||
|
{
|
||||||
|
var SubContractorsList= DriverSubContactService.GetDriverSubContactByDriverSubPlanId(DriverSubPlanId)
|
||||||
|
.Where(x => x.SubcontractingType == type).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.EnableClickEvent=true;
|
||||||
|
node.Nodes.Add(node1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
var list= BLL.DriverSubService.GetDriverSubEvaluationData(DriverSubPlanId, tvControlItem.SelectedNodeID);
|
||||||
|
var model= BLL.DriverSubService.GetDriverSubBySubPlanIdAndTractorsId(DriverSubPlanId,tvControlItem.SelectedNodeID);
|
||||||
|
if (model!=null)
|
||||||
|
{
|
||||||
|
DriverSubId = model.DriverSubId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DriverSubId = "";
|
||||||
|
}
|
||||||
|
if (list.Count>0 )
|
||||||
|
{
|
||||||
|
Grid1.DataSource = list;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData();
|
||||||
|
Grid1.DataBind();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region 附件上传
|
#region 附件上传
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 附件上传
|
/// 附件上传
|
||||||
|
@ -54,11 +120,8 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnAttach_Click(object sender, EventArgs e)
|
protected void btnAttach_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
Save();
|
||||||
{
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSub&menuId={1}", DriverSubId, BLL.Const.DriverSubMenuId)));
|
||||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub));
|
|
||||||
}
|
|
||||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSub&menuId={1}", this.hdId.Text, BLL.Const.DriverSubMenuId)));
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -70,65 +133,49 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnSave_Click(object sender, EventArgs e)
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.drpImplement.SelectedValue==BLL.Const._Null)
|
|
||||||
{
|
Save();
|
||||||
Alert.ShowInTop("请选择开车分包单位!", MessageBoxIcon.Warning);
|
tvControlItem_NodeCommand(null,null);
|
||||||
return;
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
// PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
}
|
}
|
||||||
if (this.drpSubUnitId.SelectedValue == BLL.Const._Null)
|
|
||||||
|
void Save()
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择记录/报告/执行情况!", MessageBoxIcon.Warning);
|
JArray EditorArr = Grid1.GetMergedData();
|
||||||
return;
|
//JArray 转换成List<Model.DriverSubEvaluationData>
|
||||||
|
List<Model.DriverSubEvaluationData> list = new List<Model.DriverSubEvaluationData>();
|
||||||
|
foreach (JObject item in EditorArr)
|
||||||
|
{
|
||||||
|
Model.DriverSubEvaluationData data = new Model.DriverSubEvaluationData();
|
||||||
|
data.Number = Convert.ToInt32(item["values"]["Number"]);
|
||||||
|
data.Matter = item["values"]["Matter"].ToString();
|
||||||
|
data.Grade = item["values"]["Grade"].ToString();
|
||||||
|
list.Add(data);
|
||||||
}
|
}
|
||||||
string id = Request.Params["id"];
|
//list转换成json数据
|
||||||
|
string json = BLL.DriverSubService.GetDriverSubEvaluationDataJson(list);
|
||||||
Model.DriverSub_DriverSub newData = new Model.DriverSub_DriverSub();
|
Model.DriverSub_DriverSub newData = new Model.DriverSub_DriverSub();
|
||||||
newData.Code = this.txtCode.Text.Trim();
|
|
||||||
if (this.drpSubUnitId.SelectedValue != BLL.Const._Null)
|
|
||||||
{
|
|
||||||
newData.SubUnitId = this.drpSubUnitId.SelectedValue;
|
|
||||||
}
|
|
||||||
if (this.drpImplement.SelectedValue!=BLL.Const._Null)
|
|
||||||
{
|
|
||||||
newData.Implement = this.drpImplement.SelectedItem.Text;
|
|
||||||
}
|
|
||||||
newData.Instruction = this.txtInstruction.Text.Trim();
|
|
||||||
newData.Remark = this.txtRemark.Text.Trim();
|
|
||||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
if (!string.IsNullOrEmpty(id))
|
newData.DriverSubPlanId = DriverSubPlanId;
|
||||||
{
|
newData.DriverSubContractorsId = tvControlItem.SelectedNodeID;
|
||||||
newData.DriverSubId = id;
|
newData.EvaluationData = json;
|
||||||
BLL.DriverSubService.UpdateDriverSub(newData);
|
|
||||||
}
|
if (string.IsNullOrEmpty(DriverSubId))
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
|
||||||
{
|
|
||||||
newData.DriverSubId = this.hdId.Text.Trim();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
newData.DriverSubId = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub));
|
newData.DriverSubId = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub));
|
||||||
this.hdId.Text = newData.DriverSubId;
|
DriverSubId= newData.DriverSubId;
|
||||||
}
|
DriverSubService.AddDriverSub(newData);
|
||||||
BLL.DriverSubService.AddDriverSub(newData);
|
|
||||||
}
|
|
||||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
|
||||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region DropDownList下拉选择事件
|
|
||||||
protected void drpImplement_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (this.drpImplement.SelectedValue == BLL.Const._Null)
|
|
||||||
{
|
|
||||||
this.txtCode.Text = string.Empty;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.txtCode.Text = this.drpImplement.SelectedValue;
|
newData.DriverSubId = DriverSubId;
|
||||||
|
DriverSubService.UpdateDriverSub(newData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,10 +7,12 @@
|
||||||
// </自动生成>
|
// </自动生成>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace FineUIPro.Web.TestRun.DriverSub {
|
namespace FineUIPro.Web.TestRun.DriverSub
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
public partial class DriverSubEdit {
|
public partial class DriverSubEdit
|
||||||
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// form1 控件。
|
/// form1 控件。
|
||||||
|
@ -31,139 +33,58 @@ namespace FineUIPro.Web.TestRun.DriverSub {
|
||||||
protected global::FineUIPro.PageManager PageManager1;
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SimpleForm1 控件。
|
/// Panel1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Form SimpleForm1;
|
protected global::FineUIPro.Panel Panel1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toolbar1 控件。
|
/// panelLeftRegion 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Toolbar Toolbar1;
|
protected global::FineUIPro.Panel panelLeftRegion;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarFill1 控件。
|
/// tvControlItem 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
protected global::FineUIPro.Tree tvControlItem;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnSave 控件。
|
/// panelCenterRegion 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnSave;
|
protected global::FineUIPro.Panel panelCenterRegion;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hdAttachUrl 控件。
|
/// Grid1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hdId 控件。
|
/// txtGrade 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hdId;
|
protected global::FineUIPro.TextBox txtGrade;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ContentPanel2 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Form2 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Form Form2;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// drpImplement 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.DropDownList drpImplement;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtCode 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextBox txtCode;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// drpSubUnitId 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.DropDownList drpSubUnitId;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtInstruction 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextArea txtInstruction;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtRemark 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextArea txtRemark;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Panel3 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Panel Panel3;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// lblAttach 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Label lblAttach;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnAttach 控件。
|
/// btnAttach 控件。
|
||||||
|
@ -174,6 +95,33 @@ namespace FineUIPro.Web.TestRun.DriverSub {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnAttach;
|
protected global::FineUIPro.Button btnAttach;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WindowAtt 控件。
|
/// WindowAtt 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
|
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
|
||||||
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||||
</httpHandlers>
|
</httpHandlers>
|
||||||
<compilation debug="false" targetFramework="4.6.1"/>
|
<compilation debug="true" targetFramework="4.6.1"/>
|
||||||
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
|
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
|
||||||
<authentication mode="Forms">
|
<authentication mode="Forms">
|
||||||
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>
|
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>
|
||||||
|
|
|
@ -128285,6 +128285,12 @@ namespace Model
|
||||||
|
|
||||||
private string _Remark;
|
private string _Remark;
|
||||||
|
|
||||||
|
private string _DriverSubPlanId;
|
||||||
|
|
||||||
|
private string _DriverSubContractorsId;
|
||||||
|
|
||||||
|
private string _EvaluationData;
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
|
||||||
private EntityRef<Base_Unit> _Base_Unit;
|
private EntityRef<Base_Unit> _Base_Unit;
|
||||||
|
@ -128309,6 +128315,12 @@ namespace Model
|
||||||
partial void OnAttachUrlChanged();
|
partial void OnAttachUrlChanged();
|
||||||
partial void OnRemarkChanging(string value);
|
partial void OnRemarkChanging(string value);
|
||||||
partial void OnRemarkChanged();
|
partial void OnRemarkChanged();
|
||||||
|
partial void OnDriverSubPlanIdChanging(string value);
|
||||||
|
partial void OnDriverSubPlanIdChanged();
|
||||||
|
partial void OnDriverSubContractorsIdChanging(string value);
|
||||||
|
partial void OnDriverSubContractorsIdChanged();
|
||||||
|
partial void OnEvaluationDataChanging(string value);
|
||||||
|
partial void OnEvaluationDataChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public DriverSub_DriverSub()
|
public DriverSub_DriverSub()
|
||||||
|
@ -128486,6 +128498,66 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DriverSubPlanId", DbType="NVarChar(50)")]
|
||||||
|
public string DriverSubPlanId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._DriverSubPlanId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._DriverSubPlanId != value))
|
||||||
|
{
|
||||||
|
this.OnDriverSubPlanIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._DriverSubPlanId = value;
|
||||||
|
this.SendPropertyChanged("DriverSubPlanId");
|
||||||
|
this.OnDriverSubPlanIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DriverSubContractorsId", DbType="NVarChar(50)")]
|
||||||
|
public string DriverSubContractorsId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._DriverSubContractorsId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._DriverSubContractorsId != value))
|
||||||
|
{
|
||||||
|
this.OnDriverSubContractorsIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._DriverSubContractorsId = value;
|
||||||
|
this.SendPropertyChanged("DriverSubContractorsId");
|
||||||
|
this.OnDriverSubContractorsIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationData", DbType="NVarChar(2000)")]
|
||||||
|
public string EvaluationData
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._EvaluationData;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._EvaluationData != value))
|
||||||
|
{
|
||||||
|
this.OnEvaluationDataChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._EvaluationData = value;
|
||||||
|
this.SendPropertyChanged("EvaluationData");
|
||||||
|
this.OnEvaluationDataChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverSub_DriverSub_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverSub_DriverSub_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||||
public Base_Project Base_Project
|
public Base_Project Base_Project
|
||||||
{
|
{
|
||||||
|
@ -129140,7 +129212,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitName", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitName", DbType="VarChar(500)")]
|
||||||
public string SubUnitName
|
public string SubUnitName
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129160,7 +129232,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnterpriseNature", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnterpriseNature", DbType="VarChar(500)")]
|
||||||
public string EnterpriseNature
|
public string EnterpriseNature
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129180,7 +129252,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractingType", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubcontractingType", DbType="VarChar(500)")]
|
||||||
public string SubcontractingType
|
public string SubcontractingType
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129200,7 +129272,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="VarChar(500)")]
|
||||||
public string CollCropCode
|
public string CollCropCode
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129220,7 +129292,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyProductionLicense", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyProductionLicense", DbType="VarChar(500)")]
|
||||||
public string SafetyProductionLicense
|
public string SafetyProductionLicense
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129240,7 +129312,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationCertificateNumber", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationCertificateNumber", DbType="VarChar(500)")]
|
||||||
public string QualificationCertificateNumber
|
public string QualificationCertificateNumber
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129260,7 +129332,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationType", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationType", DbType="VarChar(500)")]
|
||||||
public string QualificationType
|
public string QualificationType
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -129280,7 +129352,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationLevel", DbType="VarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationLevel", DbType="VarChar(500)")]
|
||||||
public string QualificationLevel
|
public string QualificationLevel
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -218,12 +218,14 @@
|
||||||
<Compile Include="SpSysUserItem.cs" />
|
<Compile Include="SpSysUserItem.cs" />
|
||||||
<Compile Include="APIItem\ResponeData.cs" />
|
<Compile Include="APIItem\ResponeData.cs" />
|
||||||
<Compile Include="SpTDesktopItem.cs" />
|
<Compile Include="SpTDesktopItem.cs" />
|
||||||
|
<Compile Include="TestRun\DriverSub\DriverSubEvaluationData.cs" />
|
||||||
<Compile Include="TokenItem.cs" />
|
<Compile Include="TokenItem.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\CQMSDataItem.cs" />
|
<Compile Include="ZHGL\DataSync\CQMSDataItem.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\HJGLDataItem.cs" />
|
<Compile Include="ZHGL\DataSync\HJGLDataItem.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\HSSEDataItem.cs" />
|
<Compile Include="ZHGL\DataSync\HSSEDataItem.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\SYHSEDataItem.cs" />
|
<Compile Include="ZHGL\DataSync\SYHSEDataItem.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup />
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
public class DriverSubEvaluationData
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 序号
|
||||||
|
/// </summary>
|
||||||
|
public int Number { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 事项
|
||||||
|
/// </summary>
|
||||||
|
public string Matter { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 分数
|
||||||
|
/// </summary>
|
||||||
|
public string Grade { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue