修改webservice
This commit is contained in:
parent
873a92c078
commit
8bf83936b2
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using BLL.CNCECHSSEService;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
@ -719,5 +720,10 @@ namespace BLL
|
|||
if (now.Month < birthDate.Month || (now.Month == birthDate.Month && now.Day < birthDate.Day)) age--;
|
||||
return age;
|
||||
}
|
||||
|
||||
public static Model.Base_Unit GetIsThisUnit()
|
||||
{
|
||||
return Funs.DB.Base_Unit.FirstOrDefault(x=>x.UnitId==Const.UnitId_CD);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,6 +93,51 @@ namespace BLL
|
|||
}
|
||||
}
|
||||
|
||||
public static void FileMoreInsert(byte[][] fileContextList, string attachUrl)
|
||||
{
|
||||
if (fileContextList != null && fileContextList.Count() > 0)
|
||||
{
|
||||
if (fileContextList.Length > 0)
|
||||
{
|
||||
string[] strs = attachUrl.Trim().Split(',');
|
||||
int i = 0;
|
||||
foreach (var item in fileContextList)
|
||||
{
|
||||
if (strs.Count() > i)
|
||||
{
|
||||
string physicalpath = Funs.RootPath;
|
||||
//HttpContext.Current.Request.PhysicalApplicationPath;
|
||||
string fullPath = physicalpath + strs[i];
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
byte[] fileContext = item;
|
||||
int index = fullPath.LastIndexOf("\\");
|
||||
string filePath = fullPath.Substring(0, index);
|
||||
|
||||
if (!Directory.Exists(filePath))
|
||||
{
|
||||
Directory.CreateDirectory(filePath);
|
||||
}
|
||||
//string savePath = fullPath + fileName;
|
||||
|
||||
//文件读写模式
|
||||
System.IO.FileMode fileMode = System.IO.FileMode.Create;
|
||||
|
||||
//写入文件
|
||||
using (System.IO.FileStream fs = new System.IO.FileStream(fullPath, fileMode, System.IO.FileAccess.Write))
|
||||
{
|
||||
fs.Write(fileContext, 0, fileContext.Length);
|
||||
}
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据和附件插入到多附件表
|
||||
/// </summary>
|
||||
|
@ -134,5 +179,48 @@ namespace BLL
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void InsertAttachFile(string attachFileId, string dataId, string attachSource, string attachUrl, byte[][] fileContext)
|
||||
{
|
||||
var getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.AttachFileId == attachFileId);
|
||||
if (getAtt != null)
|
||||
{
|
||||
Funs.DB.AttachFile.DeleteOnSubmit(getAtt);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
//多附件
|
||||
var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataId);
|
||||
if (attachFile == null && !string.IsNullOrEmpty(attachSource))
|
||||
{
|
||||
Model.AttachFile newAttachFile = new Model.AttachFile
|
||||
{
|
||||
AttachFileId = attachFileId,
|
||||
ToKeyId = dataId,
|
||||
AttachSource = attachSource,
|
||||
AttachUrl = attachUrl
|
||||
};
|
||||
Funs.DB.AttachFile.InsertOnSubmit(newAttachFile);
|
||||
Funs.DB.SubmitChanges();
|
||||
////插入附件文件
|
||||
BLL.FileInsertService.FileMoreInsert(fileContext, attachUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (attachFile.AttachUrl != attachUrl)
|
||||
{
|
||||
///删除附件文件
|
||||
BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, attachFile.AttachUrl);
|
||||
////插入附件文件
|
||||
BLL.FileInsertService.FileMoreInsert(fileContext, attachUrl);
|
||||
attachFile.AttachSource = attachSource;
|
||||
attachFile.AttachUrl = attachUrl;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -103,5 +103,55 @@ namespace BLL
|
|||
}
|
||||
return fileContext;
|
||||
}
|
||||
|
||||
public static byte[][] GetMoreFileArrayStructByAttachUrl(string attachUrl)
|
||||
{
|
||||
List<byte[]> fileContext = new List<byte[]>();
|
||||
if (!String.IsNullOrEmpty(attachUrl))
|
||||
{
|
||||
string[] strs = attachUrl.Trim().Split(',');
|
||||
foreach (var item in strs)
|
||||
{
|
||||
string filePath = string.Empty;
|
||||
string physicalpath = Funs.RootPath;
|
||||
//HttpContext.Current.Request.PhysicalApplicationPath;
|
||||
filePath = physicalpath + item;
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
FileInfo fileInfo = new FileInfo(filePath);
|
||||
if (fileInfo != null)
|
||||
{
|
||||
Stream stream = fileInfo.OpenRead();
|
||||
if (stream != null)
|
||||
{
|
||||
//读取指定大小的文件流内容到uploadFile.Context以便上传
|
||||
int b;
|
||||
while (stream.Position > -1 && stream.Position < stream.Length)
|
||||
{
|
||||
if (stream.Length - stream.Position >= 20000000)
|
||||
{
|
||||
b = 20000000;
|
||||
}
|
||||
else
|
||||
{
|
||||
b = (int)(stream.Length - stream.Position);
|
||||
}
|
||||
|
||||
byte[] filebyte = new byte[b];
|
||||
stream.Read(filebyte, 0, b);
|
||||
fileContext.Add(filebyte);
|
||||
}
|
||||
}
|
||||
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileContext.ToArray();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<discovery xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<contractRef ref="http://114.247.88.97:20080/QHSE/HSSEService.svc?wsdl" docRef="http://114.247.88.97:20080/QHSE/HSSEService.svc" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||
</discovery>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://www.localhost.com" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i0="http://tempuri.org/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HSSEService" targetNamespace="http://www.localhost.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:definitions xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:i0="http://tempuri.org/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.localhost.com" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" name="HSSEService" targetNamespace="http://www.localhost.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:import namespace="http://tempuri.org/" location="http://114.247.88.97:20080/QHSE/HSSEService.svc?wsdl=wsdl0" />
|
||||
<wsdl:types>
|
||||
<xsd:schema targetNamespace="http://www.localhost.com/Imports">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i0="http://www.localhost.com" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:definitions xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:i0="http://www.localhost.com" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsp:Policy wsu:Id="HSSEServiceEndpoint_policy">
|
||||
<wsp:ExactlyOne>
|
||||
<wsp:All>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="982d0d01-2007-484d-b75e-166e424a085b" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
||||
<ReferenceGroup xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="982d0d01-2007-484d-b75e-166e424a085b" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
||||
<ClientOptions>
|
||||
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
|
||||
<GenerateTaskBasedAsynchronousMethod>true</GenerateTaskBasedAsynchronousMethod>
|
||||
|
@ -22,13 +22,13 @@
|
|||
<MetadataSource Address="http://114.247.88.97:20080/qhse/HSSEService.svc" Protocol="http" SourceId="1" />
|
||||
</MetadataSources>
|
||||
<Metadata>
|
||||
<MetadataFile FileName="HSSEService.xsd" MetadataType="Schema" ID="06d35294-6271-4dfa-b6be-04d762a2c12c" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd1" />
|
||||
<MetadataFile FileName="HSSEService1.xsd" MetadataType="Schema" ID="3caaa671-89d4-46c9-862e-4cca4d26c6f3" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd3" />
|
||||
<MetadataFile FileName="HSSEService.disco" MetadataType="Disco" ID="8c062cbf-ca1c-453b-95d4-bd3d1fd5ffb3" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?disco" />
|
||||
<MetadataFile FileName="HSSEService.wsdl" MetadataType="Wsdl" ID="ff557fad-1dc7-4e94-a195-9432bf5ecb19" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?wsdl" />
|
||||
<MetadataFile FileName="HSSEService2.xsd" MetadataType="Schema" ID="5b8a9eec-7e89-4a68-8752-e31c813b70d4" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd0" />
|
||||
<MetadataFile FileName="HSSEService3.xsd" MetadataType="Schema" ID="11e66724-d2bb-453b-b464-1f88db542aad" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd2" />
|
||||
<MetadataFile FileName="HSSEService1.wsdl" MetadataType="Wsdl" ID="cb831354-a757-42a9-932c-fed217ca5a3e" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?wsdl=wsdl0" />
|
||||
<MetadataFile FileName="HSSEService1.xsd" MetadataType="Schema" ID="3caaa671-89d4-46c9-862e-4cca4d26c6f3" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd3" />
|
||||
<MetadataFile FileName="HSSEService2.xsd" MetadataType="Schema" ID="5b8a9eec-7e89-4a68-8752-e31c813b70d4" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd0" />
|
||||
<MetadataFile FileName="HSSEService.wsdl" MetadataType="Wsdl" ID="ff557fad-1dc7-4e94-a195-9432bf5ecb19" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?wsdl" />
|
||||
<MetadataFile FileName="HSSEService.xsd" MetadataType="Schema" ID="06d35294-6271-4dfa-b6be-04d762a2c12c" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd1" />
|
||||
<MetadataFile FileName="HSSEService3.xsd" MetadataType="Schema" ID="11e66724-d2bb-453b-b464-1f88db542aad" SourceId="1" SourceUrl="http://114.247.88.97:20080/QHSE/HSSEService.svc?xsd=xsd2" />
|
||||
</Metadata>
|
||||
<Extensions>
|
||||
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configurationSnapshot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
|
||||
<configurationSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
|
||||
<behaviors />
|
||||
<bindings>
|
||||
<binding digest="System.ServiceModel.Configuration.WSHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="HSSEServiceEndpoint"><security mode="None" /></Data>" bindingType="wsHttpBinding" name="HSSEServiceEndpoint" />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="QtPUt+s0U8K4oVjX0voBIDJNheoHOtZoFtE8iKGTDKc=">
|
||||
<SavedWcfConfigurationInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="9.1" CheckSum="4JBVwEj+13HcEhOY22ot2BbP22DjJxV5/0jwMEIbTBQ=">
|
||||
<bindingConfigurations>
|
||||
<bindingConfiguration bindingType="wsHttpBinding" name="HSSEServiceEndpoint">
|
||||
<properties>
|
||||
|
|
|
@ -1535,7 +1535,7 @@
|
|||
ResultLevel = x.ResultLevel,
|
||||
};
|
||||
|
||||
var getR = hsseC.DataInsertSupervise_UpCheckReportTable(upCheckReport.ToList(), upCheckReportItem.ToList(), upCheckReportItem2.ToList());
|
||||
var getR = hsseC.DataInsertSupervise_UpCheckReportTable(upCheckReport.ToArray(), upCheckReportItem.ToArray(), upCheckReportItem2.ToArray());
|
||||
foreach (var item in getR)
|
||||
{
|
||||
var report = db.Supervise_UpCheckReport.FirstOrDefault(e => e.UpCheckReportId == item);
|
||||
|
@ -1549,7 +1549,7 @@
|
|||
}
|
||||
}
|
||||
code = "1";
|
||||
LogService.AddSys_Log(CurrUser, "【安全监督检查评价报告】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources);
|
||||
LogService.AddSys_Log(CurrUser, "【安全监督检查评价报告】上传到服务器" + getR.Length.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -1597,10 +1597,10 @@
|
|||
AttachSource = x.AttachSource2,
|
||||
AttachUrl = x.AttachUrl2,
|
||||
////附件转为字节传送
|
||||
FileContext = FileStructService.GetMoreFileStructByAttachUrl(x.AttachUrl2),
|
||||
FileContext = FileStructService.GetMoreFileArrayStructByAttachUrl(x.AttachUrl2),
|
||||
};
|
||||
|
||||
var getR = hsseC.DataInsertCheck_CheckRectifyTable(upCheckReport.ToList());
|
||||
var getR = hsseC.DataInsertCheck_CheckRectifyTable(upCheckReport.ToArray());
|
||||
foreach (var item in getR)
|
||||
{
|
||||
var newCheckRectify = db.Check_CheckRectify.FirstOrDefault(e => e.CheckRectifyId == item);
|
||||
|
@ -1611,7 +1611,7 @@
|
|||
}
|
||||
}
|
||||
code = "1";
|
||||
LogService.AddSys_Log(CurrUser, "【集团检查整改】上传到服务器" + getR.Count.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources);
|
||||
LogService.AddSys_Log(CurrUser, "【集团检查整改】上传到服务器" + getR.Length.ToString() + "条数据;", null, BLL.Const.UpCheckReportMenuId, BLL.Const.BtnUploadResources);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -1652,11 +1652,11 @@
|
|||
AttachSource = x.AttachSource,
|
||||
AttachUrl = x.AttachUrl,
|
||||
////附件转为字节传送
|
||||
FileContext = FileStructService.GetMoreFileStructByAttachUrl(x.AttachUrl),
|
||||
FileContext = FileStructService.GetMoreFileArrayStructByAttachUrl(x.AttachUrl),
|
||||
};
|
||||
if (upCheckReport.Count() > 0)
|
||||
{
|
||||
var getR = hsseC.DataInsertSupervise_SubUnitReportItemItemTable(upCheckReport.ToList());
|
||||
var getR = hsseC.DataInsertSupervise_SubUnitReportItemItemTable(upCheckReport.ToArray());
|
||||
foreach (var item in getR)
|
||||
{
|
||||
var subUnitReportItem = db.Supervise_SubUnitReportItem.FirstOrDefault(e => e.SubUnitReportItemId == item);
|
||||
|
|
|
@ -9261,6 +9261,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_Supervise_SubUnitReportItem> View_Supervise_SubUnitReportItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<View_Supervise_SubUnitReportItem>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_Supervise_SuperviseCheckRectify> View_Supervise_SuperviseCheckRectify
|
||||
{
|
||||
get
|
||||
|
@ -406208,6 +406216,321 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Supervise_SubUnitReportItem")]
|
||||
public partial class View_Supervise_SubUnitReportItem
|
||||
{
|
||||
|
||||
private string _SubUnitReportItemId;
|
||||
|
||||
private string _SubUnitReportId;
|
||||
|
||||
private string _UnitId;
|
||||
|
||||
private System.Nullable<System.DateTime> _PlanReortDate;
|
||||
|
||||
private string _ReportTitle;
|
||||
|
||||
private string _ReportContent;
|
||||
|
||||
private System.Nullable<System.DateTime> _ReportDate;
|
||||
|
||||
private string _State;
|
||||
|
||||
private string _UpState;
|
||||
|
||||
private string _AttachUrlName;
|
||||
|
||||
private string _UnitName;
|
||||
|
||||
private string _UpStates;
|
||||
|
||||
private string _UpStateName;
|
||||
|
||||
private string _AttachFileId;
|
||||
|
||||
private string _ToKeyId;
|
||||
|
||||
private string _AttachSource;
|
||||
|
||||
private string _AttachUrl;
|
||||
|
||||
public View_Supervise_SubUnitReportItem()
|
||||
{
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitReportItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string SubUnitReportItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SubUnitReportItemId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SubUnitReportItemId != value))
|
||||
{
|
||||
this._SubUnitReportItemId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitReportId", DbType="NVarChar(50)")]
|
||||
public string SubUnitReportId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SubUnitReportId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SubUnitReportId != value))
|
||||
{
|
||||
this._SubUnitReportId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
|
||||
public string UnitId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitId != value))
|
||||
{
|
||||
this._UnitId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanReortDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> PlanReortDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PlanReortDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PlanReortDate != value))
|
||||
{
|
||||
this._PlanReortDate = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportTitle", DbType="NVarChar(500)")]
|
||||
public string ReportTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReportTitle;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReportTitle != value))
|
||||
{
|
||||
this._ReportTitle = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportContent", DbType="NVarChar(1000)")]
|
||||
public string ReportContent
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReportContent;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReportContent != value))
|
||||
{
|
||||
this._ReportContent = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> ReportDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReportDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReportDate != value))
|
||||
{
|
||||
this._ReportDate = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Char(1)")]
|
||||
public string State
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._State;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._State != value))
|
||||
{
|
||||
this._State = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpState", DbType="Char(1)")]
|
||||
public string UpState
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpState;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpState != value))
|
||||
{
|
||||
this._UpState = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrlName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
|
||||
public string AttachUrlName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttachUrlName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttachUrlName != value))
|
||||
{
|
||||
this._AttachUrlName = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(200)")]
|
||||
public string UnitName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitName != value))
|
||||
{
|
||||
this._UnitName = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpStates", DbType="VarChar(8)")]
|
||||
public string UpStates
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpStates;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpStates != value))
|
||||
{
|
||||
this._UpStates = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpStateName", DbType="NVarChar(100)")]
|
||||
public string UpStateName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpStateName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpStateName != value))
|
||||
{
|
||||
this._UpStateName = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachFileId", DbType="NVarChar(50)")]
|
||||
public string AttachFileId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttachFileId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttachFileId != value))
|
||||
{
|
||||
this._AttachFileId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToKeyId", DbType="NVarChar(50)")]
|
||||
public string ToKeyId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ToKeyId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ToKeyId != value))
|
||||
{
|
||||
this._ToKeyId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachSource", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
|
||||
public string AttachSource
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttachSource;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttachSource != value))
|
||||
{
|
||||
this._AttachSource = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
|
||||
public string AttachUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttachUrl;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttachUrl != value))
|
||||
{
|
||||
this._AttachUrl = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Supervise_SuperviseCheckRectify")]
|
||||
public partial class View_Supervise_SuperviseCheckRectify
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue