1202-003-gaofei
This commit is contained in:
parent
4b4f6e4389
commit
ffe2ea7fcc
|
@ -536,5 +536,20 @@
|
||||||
}
|
}
|
||||||
return unitName;
|
return unitName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///获取项目材料软件ID
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static long GetCLProjectCodeByProjectId(string projectId)
|
||||||
|
{
|
||||||
|
long code = 0;
|
||||||
|
var project = Funs.DB.Base_Project.FirstOrDefault(e => e.ProjectId == projectId);
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
code = project.CLProjectCode ?? 0;
|
||||||
|
}
|
||||||
|
return code;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Timers;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -9,8 +10,79 @@
|
||||||
|
|
||||||
public static class MCSWebService
|
public static class MCSWebService
|
||||||
{
|
{
|
||||||
|
#region 启动监视器 系统启动5分钟
|
||||||
|
/// <summary>
|
||||||
|
/// 监视组件
|
||||||
|
/// </summary>
|
||||||
|
private static Timer messageTimer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 启动监视器,不一定能成功,根据系统设置决定对监视器执行的操作 系统启动5分钟
|
||||||
|
/// </summary>
|
||||||
|
public static void StartMonitor()
|
||||||
|
{
|
||||||
|
if (messageTimer != null)
|
||||||
|
{
|
||||||
|
messageTimer.Stop();
|
||||||
|
messageTimer.Dispose();
|
||||||
|
messageTimer = null;
|
||||||
|
}
|
||||||
|
messageTimer = new Timer
|
||||||
|
{
|
||||||
|
AutoReset = true
|
||||||
|
};
|
||||||
|
messageTimer.Elapsed += new ElapsedEventHandler(GetCLData);
|
||||||
|
messageTimer.Interval = 1000 * 60 * 60 * 24;// 60分钟 60000 * adTimeJ;
|
||||||
|
messageTimer.Start();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private static void GetCLData(object sender, ElapsedEventArgs e)
|
||||||
|
{
|
||||||
|
getPojectInfo();
|
||||||
|
getVendor();
|
||||||
|
var projects = from x in Funs.DB.Base_Project where x.CLProjectCode != null select x;
|
||||||
|
foreach (var project in projects)
|
||||||
|
{
|
||||||
|
getPoDetails(project.CLProjectCode ?? 0);
|
||||||
|
getIssueDetails(project.CLProjectCode ?? 0);
|
||||||
|
getPartNoInfo(project.CLProjectCode ?? 0);
|
||||||
|
getShelvesNo(project.CLProjectCode ?? 0);
|
||||||
|
getSubcontractor(project.CLProjectCode ?? 0);
|
||||||
|
getReqDetails(project.CLProjectCode ?? 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void getPojectInfo()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
|
var details = mscsC.getPojectInfo();
|
||||||
|
if (!string.IsNullOrEmpty(details))
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
JArray arr = JArray.Parse(details);
|
||||||
|
foreach (var item in arr)
|
||||||
|
{
|
||||||
|
Model.Base_Project project = db.Base_Project.FirstOrDefault(x => x.ProjectCode == item["项目编码"].ToString());
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
project.CLProjectCode = Funs.GetNewInt(item["项目ID"].ToString());
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPojectInfo");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getPoDetails(long projectId)
|
public static void getPoDetails(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getPoDetails(projectId);
|
var details = mscsC.getPoDetails(projectId);
|
||||||
|
@ -46,8 +118,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPoDetails");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getIssueDetails(long projectId)
|
public static void getIssueDetails(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getIssueDetails(projectId);
|
var details = mscsC.getIssueDetails(projectId);
|
||||||
|
@ -89,8 +168,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getIssueDetails");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getPartNoInfo(long projectId)
|
public static void getPartNoInfo(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getPartNoInfo(projectId);
|
var details = mscsC.getPartNoInfo(projectId);
|
||||||
|
@ -119,8 +205,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getShelvesNo(long projectId)
|
public static void getShelvesNo(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getShelvesNo(projectId);
|
var details = mscsC.getShelvesNo(projectId);
|
||||||
|
@ -146,8 +239,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getSubcontractor(long projectId)
|
public static void getSubcontractor(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getSubcontractor(projectId);
|
var details = mscsC.getSubcontractor(projectId);
|
||||||
|
@ -173,8 +273,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getSubcontractor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getVendor()
|
public static void getVendor()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getVendor();
|
var details = mscsC.getVendor();
|
||||||
|
@ -199,8 +306,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void getReqDetails(long projectId)
|
public static void getReqDetails(long projectId)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
||||||
var details = mscsC.getReqDetails(projectId);
|
var details = mscsC.getReqDetails(projectId);
|
||||||
|
@ -242,5 +356,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="PPGUID" AllowSorting="true" SortField="PPGUID"
|
DataIDField="PPGUID" AllowSorting="true" SortField="PPGUID"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getPoDetails(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getPoDetails(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_ContractQuantitySheet c
|
from dbo.CLGL_ContractQuantitySheet c
|
||||||
where c.ProjectId=@ProjectId order by c.ContractCode desc";
|
where c.ProjectId=@ProjectId order by c.ContractCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="DHGUID" AllowSorting="true" SortField="DHGUID"
|
DataIDField="DHGUID" AllowSorting="true" SortField="DHGUID"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getShelvesNo(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getShelvesNo(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_GoodsShelves c
|
from dbo.CLGL_GoodsShelves c
|
||||||
where c.ProjectId=@ProjectId order by c.GoodsShelvesCode desc";
|
where c.ProjectId=@ProjectId order by c.GoodsShelvesCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="Id" AllowSorting="true" SortField="Id"
|
DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getPartNoInfo(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getPartNoInfo(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_Material c
|
from dbo.CLGL_Material c
|
||||||
where c.ProjectId=@ProjectId order by c.MaterialCode desc";
|
where c.ProjectId=@ProjectId order by c.MaterialCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="IDGUID" AllowSorting="true" SortField="IDGUID"
|
DataIDField="IDGUID" AllowSorting="true" SortField="IDGUID"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getIssueDetails(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getIssueDetails(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_PickMaterialRecord c
|
from dbo.CLGL_PickMaterialRecord c
|
||||||
where c.ProjectId=@ProjectId order by c.PickCode desc";
|
where c.ProjectId=@ProjectId order by c.PickCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="Id" AllowSorting="true" SortField="Id"
|
DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getReqDetails(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getReqDetails(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_PurchaseRequisition c
|
from dbo.CLGL_PurchaseRequisition c
|
||||||
where c.ProjectId=@ProjectId order by c.PurchaseRequisitionCode desc";
|
where c.ProjectId=@ProjectId order by c.PurchaseRequisitionCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="Id" AllowSorting="true" SortField="Id"
|
DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
BLL.MCSWebService.getSubcontractor(3919);
|
|
||||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
// 绑定表格
|
// 绑定表格
|
||||||
this.BindGrid();
|
this.BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getSubcontractor(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||||
from dbo.CLGL_SubUnit c
|
from dbo.CLGL_SubUnit c
|
||||||
where c.ProjectId=@ProjectId order by c.SubUnitCode desc";
|
where c.ProjectId=@ProjectId order by c.SubUnitCode desc";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
Grid1.RecordCount = tb.Rows.Count;
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -24,6 +24,14 @@
|
||||||
DataIDField="Id" AllowSorting="true" SortField="Id"
|
DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||||
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
SortDirection="desc" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnGet" Text="获取" ToolTip="从材料系统中获取数据" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||||
TextAlign="Center" />
|
TextAlign="Center" />
|
||||||
|
|
|
@ -28,6 +28,17 @@ namespace FineUIPro.Web.CLGL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnGet_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.MCSWebService.getVendor();
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定数据
|
/// 绑定数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -48,6 +48,24 @@ namespace FineUIPro.Web.CLGL {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGet 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnGet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarSeparator1 控件。
|
/// ToolbarSeparator1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
BLL.RealNameMonitorService.StartMonitor();
|
BLL.RealNameMonitorService.StartMonitor();
|
||||||
}
|
}
|
||||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -55,6 +54,7 @@
|
||||||
BLL.MonitorService.StartMonitor();
|
BLL.MonitorService.StartMonitor();
|
||||||
BLL.MonitorService.StartMonitorEve();
|
BLL.MonitorService.StartMonitorEve();
|
||||||
BLL.MonitorService.StartPersonQuarterCheck();
|
BLL.MonitorService.StartPersonQuarterCheck();
|
||||||
|
BLL.MCSWebService.StartMonitor();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22508,6 +22508,8 @@ namespace Model
|
||||||
|
|
||||||
private string _KZProjectCode;
|
private string _KZProjectCode;
|
||||||
|
|
||||||
|
private System.Nullable<long> _CLProjectCode;
|
||||||
|
|
||||||
private EntitySet<Accident_AccidentHandle> _Accident_AccidentHandle;
|
private EntitySet<Accident_AccidentHandle> _Accident_AccidentHandle;
|
||||||
|
|
||||||
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
|
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
|
||||||
|
@ -23118,6 +23120,8 @@ namespace Model
|
||||||
partial void OnHJProjectCodeChanged();
|
partial void OnHJProjectCodeChanged();
|
||||||
partial void OnKZProjectCodeChanging(string value);
|
partial void OnKZProjectCodeChanging(string value);
|
||||||
partial void OnKZProjectCodeChanged();
|
partial void OnKZProjectCodeChanged();
|
||||||
|
partial void OnCLProjectCodeChanging(System.Nullable<long> value);
|
||||||
|
partial void OnCLProjectCodeChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Base_Project()
|
public Base_Project()
|
||||||
|
@ -24082,6 +24086,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CLProjectCode", DbType="BigInt")]
|
||||||
|
public System.Nullable<long> CLProjectCode
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CLProjectCode;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CLProjectCode != value))
|
||||||
|
{
|
||||||
|
this.OnCLProjectCodeChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CLProjectCode = value;
|
||||||
|
this.SendPropertyChanged("CLProjectCode");
|
||||||
|
this.OnCLProjectCodeChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentHandle_Base_Project", Storage="_Accident_AccidentHandle", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentHandle_Base_Project", Storage="_Accident_AccidentHandle", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Accident_AccidentHandle> Accident_AccidentHandle
|
public EntitySet<Accident_AccidentHandle> Accident_AccidentHandle
|
||||||
{
|
{
|
||||||
|
@ -73309,7 +73333,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualifiedProjectCode", DbType="NVarChar(50)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualifiedProjectCode", DbType="NVarChar(500)")]
|
||||||
public string QualifiedProjectCode
|
public string QualifiedProjectCode
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -248160,7 +248184,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
|
||||||
public string Address
|
public string Address
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -248224,7 +248248,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
|
||||||
public string WorkAreaName
|
public string WorkAreaName
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -329851,7 +329875,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
|
||||||
public string Address
|
public string Address
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -329867,7 +329891,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
|
||||||
public string WorkAreaName
|
public string WorkAreaName
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -337654,7 +337678,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(100)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(102)")]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
Loading…
Reference in New Issue