This commit is contained in:
gaofei 2021-12-02 15:05:33 +08:00
commit 4b4f6e4389
10 changed files with 2444 additions and 392 deletions

View File

@ -0,0 +1,36 @@
--delete from Sys_ButtonToMenu where MenuId in (select MenuId from Sys_Menu where MenuType='Menu_CLGL')
--go
--delete from Sys_Menu where MenuType='Menu_CLGL'
--go
/****材料管理******/
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('64E43C10-ECA5-4C7D-97C9-670E9F05DC01','材料信息','CLGL/Material.aspx',10,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('414F9650-37F8-4B20-A2BB-EBBD4F620E49','货架信息','CLGL/GoodsShelves.aspx',20,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('4B52E7FF-AA04-489B-B0EE-DC31C5C4F45B','施工单位信息','CLGL/SubUnit.aspx',30,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('43A118BC-0A81-42F1-B008-829D40CFE625','供应商信息','CLGL/Supplier.aspx',40,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('3C87C9C0-1C22-48A0-A767-9537347F6A7D','合同量单','CLGL/ContractQuantitySheet.aspx',50,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('94041D2D-ADF5-47CD-8628-11837D32354D','请购单','CLGL/PurchaseRequisition.aspx',60,'0','Menu_CLGL',0,1,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('0E23EC47-4C05-4783-91C1-1ACFE270C4D4','领料单','CLGL/MaterialRecord.aspx',70,'0','Menu_CLGL',0,1,1)
GO

View File

@ -22,6 +22,13 @@ namespace BLL.MCSService {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getVendorUserNameAndPwd", ReplyAction="*")]
System.Threading.Tasks.Task<string> getVendorUserNameAndPwdAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getPojectInfo", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string getPojectInfo();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getPojectInfo", ReplyAction="*")]
System.Threading.Tasks.Task<string> getPojectInfoAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getPoDetails", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string getPoDetails(long projectID);
@ -36,13 +43,6 @@ namespace BLL.MCSService {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/writeShelvesNo", ReplyAction="*")]
System.Threading.Tasks.Task<string> writeShelvesNoAsync(string JsonVoiceArray, long ProjectID);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/overIssue", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string overIssue(string isguid, string username);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/overIssue", ReplyAction="*")]
System.Threading.Tasks.Task<string> overIssueAsync(string isguid, string username);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/writeDeliveryDetails", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string writeDeliveryDetails(string JsonVoiceArray, long ProjectID);
@ -50,6 +50,13 @@ namespace BLL.MCSService {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/writeDeliveryDetails", ReplyAction="*")]
System.Threading.Tasks.Task<string> writeDeliveryDetailsAsync(string JsonVoiceArray, long ProjectID);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/overIssue", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string overIssue(string isguid, string username);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/overIssue", ReplyAction="*")]
System.Threading.Tasks.Task<string> overIssueAsync(string isguid, string username);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getIssueDetails", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
string getIssueDetails(long projectID);
@ -156,6 +163,14 @@ namespace BLL.MCSService {
return base.Channel.getVendorUserNameAndPwdAsync();
}
public string getPojectInfo() {
return base.Channel.getPojectInfo();
}
public System.Threading.Tasks.Task<string> getPojectInfoAsync() {
return base.Channel.getPojectInfoAsync();
}
public string getPoDetails(long projectID) {
return base.Channel.getPoDetails(projectID);
}
@ -172,14 +187,6 @@ namespace BLL.MCSService {
return base.Channel.writeShelvesNoAsync(JsonVoiceArray, ProjectID);
}
public string overIssue(string isguid, string username) {
return base.Channel.overIssue(isguid, username);
}
public System.Threading.Tasks.Task<string> overIssueAsync(string isguid, string username) {
return base.Channel.overIssueAsync(isguid, username);
}
public string writeDeliveryDetails(string JsonVoiceArray, long ProjectID) {
return base.Channel.writeDeliveryDetails(JsonVoiceArray, ProjectID);
}
@ -188,6 +195,14 @@ namespace BLL.MCSService {
return base.Channel.writeDeliveryDetailsAsync(JsonVoiceArray, ProjectID);
}
public string overIssue(string isguid, string username) {
return base.Channel.overIssue(isguid, username);
}
public System.Threading.Tasks.Task<string> overIssueAsync(string isguid, string username) {
return base.Channel.overIssueAsync(isguid, username);
}
public string getIssueDetails(long projectID) {
return base.Channel.getIssueDetails(projectID);
}

View File

@ -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="37304c51-408b-432c-bdac-dd854304d70d" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="5f8efb35-0475-48cd-b9af-a438f936a5ea" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
<ClientOptions>
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
<GenerateTaskBasedAsynchronousMethod>true</GenerateTaskBasedAsynchronousMethod>
@ -19,11 +19,11 @@
<ServiceContractMappings />
</ClientOptions>
<MetadataSources>
<MetadataSource Address="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" Protocol="http" SourceId="1" />
<MetadataSource Address="http://mat.cwcec.com/LocWebServices/WebService1.asmx" Protocol="http" SourceId="1" />
</MetadataSources>
<Metadata>
<MetadataFile FileName="WebService1.wsdl" MetadataType="Wsdl" ID="0f01b3bd-714b-492d-812c-7c659bae56af" SourceId="1" SourceUrl="http://mattest.cwcec.com/LocWebServices/WebService1.asmx?wsdl" />
<MetadataFile FileName="WebService1.disco" MetadataType="Disco" ID="89d8bf32-e456-44ac-a695-20623955fbb2" SourceId="1" SourceUrl="http://mattest.cwcec.com/LocWebServices/WebService1.asmx?disco" />
<MetadataFile FileName="WebService1.wsdl" MetadataType="Wsdl" ID="147ca4c4-e6f9-4f63-8f58-9f0252b12bb2" SourceId="1" SourceUrl="http://mat.cwcec.com/LocWebServices/WebService1.asmx?wsdl" />
<MetadataFile FileName="WebService1.disco" MetadataType="Disco" ID="a821a427-5351-4ca8-9653-b4e32b14d913" SourceId="1" SourceUrl="http://mat.cwcec.com/LocWebServices/WebService1.asmx?disco" />
</Metadata>
<Extensions>
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />

View File

@ -1,6 +1,6 @@
<?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/">
<contractRef ref="http://mattest.cwcec.com/LocWebServices/WebService1.asmx?wsdl" docRef="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<soap address="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" xmlns:q1="http://tempuri.org/" binding="q1:WebService1Soap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<soap address="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" xmlns:q2="http://tempuri.org/" binding="q2:WebService1Soap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<contractRef ref="http://mat.cwcec.com/LocWebServices/WebService1.asmx?wsdl" docRef="http://mat.cwcec.com/LocWebServices/WebService1.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<soap address="http://mat.cwcec.com/LocWebServices/WebService1.asmx" xmlns:q1="http://tempuri.org/" binding="q1:WebService1Soap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<soap address="http://mat.cwcec.com/LocWebServices/WebService1.asmx" xmlns:q2="http://tempuri.org/" binding="q2:WebService1Soap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
</discovery>

View File

@ -12,6 +12,16 @@
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPojectInfo">
<s:complexType />
</s:element>
<s:element name="getPojectInfoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="getPojectInfoResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getPoDetails">
<s:complexType>
<s:sequence>
@ -41,21 +51,6 @@
</s:sequence>
</s:complexType>
</s:element>
<s:element name="overIssue">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="isguid" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="overIssueResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="overIssueResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="writeDeliveryDetails">
<s:complexType>
<s:sequence>
@ -71,6 +66,21 @@
</s:sequence>
</s:complexType>
</s:element>
<s:element name="overIssue">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="isguid" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="overIssueResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="overIssueResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getIssueDetails">
<s:complexType>
<s:sequence>
@ -220,6 +230,12 @@
<wsdl:message name="getVendorUserNameAndPwdSoapOut">
<wsdl:part name="parameters" element="tns:getVendorUserNameAndPwdResponse" />
</wsdl:message>
<wsdl:message name="getPojectInfoSoapIn">
<wsdl:part name="parameters" element="tns:getPojectInfo" />
</wsdl:message>
<wsdl:message name="getPojectInfoSoapOut">
<wsdl:part name="parameters" element="tns:getPojectInfoResponse" />
</wsdl:message>
<wsdl:message name="getPoDetailsSoapIn">
<wsdl:part name="parameters" element="tns:getPoDetails" />
</wsdl:message>
@ -232,18 +248,18 @@
<wsdl:message name="writeShelvesNoSoapOut">
<wsdl:part name="parameters" element="tns:writeShelvesNoResponse" />
</wsdl:message>
<wsdl:message name="overIssueSoapIn">
<wsdl:part name="parameters" element="tns:overIssue" />
</wsdl:message>
<wsdl:message name="overIssueSoapOut">
<wsdl:part name="parameters" element="tns:overIssueResponse" />
</wsdl:message>
<wsdl:message name="writeDeliveryDetailsSoapIn">
<wsdl:part name="parameters" element="tns:writeDeliveryDetails" />
</wsdl:message>
<wsdl:message name="writeDeliveryDetailsSoapOut">
<wsdl:part name="parameters" element="tns:writeDeliveryDetailsResponse" />
</wsdl:message>
<wsdl:message name="overIssueSoapIn">
<wsdl:part name="parameters" element="tns:overIssue" />
</wsdl:message>
<wsdl:message name="overIssueSoapOut">
<wsdl:part name="parameters" element="tns:overIssueResponse" />
</wsdl:message>
<wsdl:message name="getIssueDetailsSoapIn">
<wsdl:part name="parameters" element="tns:getIssueDetails" />
</wsdl:message>
@ -308,6 +324,10 @@
<wsdl:message name="getVendorUserNameAndPwdHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getPojectInfoHttpGetIn" />
<wsdl:message name="getPojectInfoHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getPoDetailsHttpGetIn">
<wsdl:part name="projectID" type="s:string" />
</wsdl:message>
@ -321,13 +341,6 @@
<wsdl:message name="writeShelvesNoHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpGetIn">
<wsdl:part name="isguid" type="s:string" />
<wsdl:part name="username" type="s:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="writeDeliveryDetailsHttpGetIn">
<wsdl:part name="JsonVoiceArray" type="s:string" />
<wsdl:part name="ProjectID" type="s:string" />
@ -335,6 +348,13 @@
<wsdl:message name="writeDeliveryDetailsHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpGetIn">
<wsdl:part name="isguid" type="s:string" />
<wsdl:part name="username" type="s:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getIssueDetailsHttpGetIn">
<wsdl:part name="projectID" type="s:string" />
</wsdl:message>
@ -401,6 +421,10 @@
<wsdl:message name="getVendorUserNameAndPwdHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getPojectInfoHttpPostIn" />
<wsdl:message name="getPojectInfoHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getPoDetailsHttpPostIn">
<wsdl:part name="projectID" type="s:string" />
</wsdl:message>
@ -414,13 +438,6 @@
<wsdl:message name="writeShelvesNoHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpPostIn">
<wsdl:part name="isguid" type="s:string" />
<wsdl:part name="username" type="s:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="writeDeliveryDetailsHttpPostIn">
<wsdl:part name="JsonVoiceArray" type="s:string" />
<wsdl:part name="ProjectID" type="s:string" />
@ -428,6 +445,13 @@
<wsdl:message name="writeDeliveryDetailsHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpPostIn">
<wsdl:part name="isguid" type="s:string" />
<wsdl:part name="username" type="s:string" />
</wsdl:message>
<wsdl:message name="overIssueHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
<wsdl:message name="getIssueDetailsHttpPostIn">
<wsdl:part name="projectID" type="s:string" />
</wsdl:message>
@ -495,6 +519,10 @@
<wsdl:input message="tns:getVendorUserNameAndPwdSoapIn" />
<wsdl:output message="tns:getVendorUserNameAndPwdSoapOut" />
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<wsdl:input message="tns:getPojectInfoSoapIn" />
<wsdl:output message="tns:getPojectInfoSoapOut" />
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<wsdl:input message="tns:getPoDetailsSoapIn" />
<wsdl:output message="tns:getPoDetailsSoapOut" />
@ -503,14 +531,14 @@
<wsdl:input message="tns:writeShelvesNoSoapIn" />
<wsdl:output message="tns:writeShelvesNoSoapOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueSoapIn" />
<wsdl:output message="tns:overIssueSoapOut" />
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<wsdl:input message="tns:writeDeliveryDetailsSoapIn" />
<wsdl:output message="tns:writeDeliveryDetailsSoapOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueSoapIn" />
<wsdl:output message="tns:overIssueSoapOut" />
</wsdl:operation>
<wsdl:operation name="getIssueDetails">
<wsdl:input message="tns:getIssueDetailsSoapIn" />
<wsdl:output message="tns:getIssueDetailsSoapOut" />
@ -557,6 +585,10 @@
<wsdl:input message="tns:getVendorUserNameAndPwdHttpGetIn" />
<wsdl:output message="tns:getVendorUserNameAndPwdHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<wsdl:input message="tns:getPojectInfoHttpGetIn" />
<wsdl:output message="tns:getPojectInfoHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<wsdl:input message="tns:getPoDetailsHttpGetIn" />
<wsdl:output message="tns:getPoDetailsHttpGetOut" />
@ -565,14 +597,14 @@
<wsdl:input message="tns:writeShelvesNoHttpGetIn" />
<wsdl:output message="tns:writeShelvesNoHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueHttpGetIn" />
<wsdl:output message="tns:overIssueHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<wsdl:input message="tns:writeDeliveryDetailsHttpGetIn" />
<wsdl:output message="tns:writeDeliveryDetailsHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueHttpGetIn" />
<wsdl:output message="tns:overIssueHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="getIssueDetails">
<wsdl:input message="tns:getIssueDetailsHttpGetIn" />
<wsdl:output message="tns:getIssueDetailsHttpGetOut" />
@ -619,6 +651,10 @@
<wsdl:input message="tns:getVendorUserNameAndPwdHttpPostIn" />
<wsdl:output message="tns:getVendorUserNameAndPwdHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<wsdl:input message="tns:getPojectInfoHttpPostIn" />
<wsdl:output message="tns:getPojectInfoHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<wsdl:input message="tns:getPoDetailsHttpPostIn" />
<wsdl:output message="tns:getPoDetailsHttpPostOut" />
@ -627,14 +663,14 @@
<wsdl:input message="tns:writeShelvesNoHttpPostIn" />
<wsdl:output message="tns:writeShelvesNoHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueHttpPostIn" />
<wsdl:output message="tns:overIssueHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<wsdl:input message="tns:writeDeliveryDetailsHttpPostIn" />
<wsdl:output message="tns:writeDeliveryDetailsHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="overIssue">
<wsdl:input message="tns:overIssueHttpPostIn" />
<wsdl:output message="tns:overIssueHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="getIssueDetails">
<wsdl:input message="tns:getIssueDetailsHttpPostIn" />
<wsdl:output message="tns:getIssueDetailsHttpPostOut" />
@ -687,6 +723,15 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<soap:operation soapAction="http://tempuri.org/getPojectInfo" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<soap:operation soapAction="http://tempuri.org/getPoDetails" style="document" />
<wsdl:input>
@ -705,8 +750,8 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="overIssue">
<soap:operation soapAction="http://tempuri.org/overIssue" style="document" />
<wsdl:operation name="writeDeliveryDetails">
<soap:operation soapAction="http://tempuri.org/writeDeliveryDetails" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
@ -714,8 +759,8 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<soap:operation soapAction="http://tempuri.org/writeDeliveryDetails" style="document" />
<wsdl:operation name="overIssue">
<soap:operation soapAction="http://tempuri.org/overIssue" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
@ -825,6 +870,15 @@
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<soap12:operation soapAction="http://tempuri.org/getPojectInfo" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<soap12:operation soapAction="http://tempuri.org/getPoDetails" style="document" />
<wsdl:input>
@ -843,8 +897,8 @@
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="overIssue">
<soap12:operation soapAction="http://tempuri.org/overIssue" style="document" />
<wsdl:operation name="writeDeliveryDetails">
<soap12:operation soapAction="http://tempuri.org/writeDeliveryDetails" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
@ -852,8 +906,8 @@
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<soap12:operation soapAction="http://tempuri.org/writeDeliveryDetails" style="document" />
<wsdl:operation name="overIssue">
<soap12:operation soapAction="http://tempuri.org/overIssue" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
@ -963,6 +1017,15 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<http:operation location="/getPojectInfo" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<http:operation location="/getPoDetails" />
<wsdl:input>
@ -981,8 +1044,8 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="overIssue">
<http:operation location="/overIssue" />
<wsdl:operation name="writeDeliveryDetails">
<http:operation location="/writeDeliveryDetails" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
@ -990,8 +1053,8 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<http:operation location="/writeDeliveryDetails" />
<wsdl:operation name="overIssue">
<http:operation location="/overIssue" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
@ -1101,6 +1164,15 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPojectInfo">
<http:operation location="/getPojectInfo" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPoDetails">
<http:operation location="/getPoDetails" />
<wsdl:input>
@ -1119,8 +1191,8 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="overIssue">
<http:operation location="/overIssue" />
<wsdl:operation name="writeDeliveryDetails">
<http:operation location="/writeDeliveryDetails" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
@ -1128,8 +1200,8 @@
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="writeDeliveryDetails">
<http:operation location="/writeDeliveryDetails" />
<wsdl:operation name="overIssue">
<http:operation location="/overIssue" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
@ -1230,16 +1302,16 @@
</wsdl:binding>
<wsdl:service name="WebService1">
<wsdl:port name="WebService1Soap" binding="tns:WebService1Soap">
<soap:address location="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" />
<soap:address location="http://mat.cwcec.com/LocWebServices/WebService1.asmx" />
</wsdl:port>
<wsdl:port name="WebService1Soap12" binding="tns:WebService1Soap12">
<soap12:address location="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" />
<soap12:address location="http://mat.cwcec.com/LocWebServices/WebService1.asmx" />
</wsdl:port>
<wsdl:port name="WebService1HttpGet" binding="tns:WebService1HttpGet">
<http:address location="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" />
<http:address location="http://mat.cwcec.com/LocWebServices/WebService1.asmx" />
</wsdl:port>
<wsdl:port name="WebService1HttpPost" binding="tns:WebService1HttpPost">
<http:address location="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" />
<http:address location="http://mat.cwcec.com/LocWebServices/WebService1.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

View File

@ -6,7 +6,7 @@
<binding digest="System.ServiceModel.Configuration.CustomBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data name=&quot;WebService1Soap12&quot;&gt;&lt;httpTransport /&gt;&lt;textMessageEncoding messageVersion=&quot;Soap12&quot; /&gt;&lt;/Data&gt;" bindingType="customBinding" name="WebService1Soap12" />
</bindings>
<endpoints>
<endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mattest.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;WebService1Soap&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap&quot; /&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mattest.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;WebService1Soap&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap&quot; /&gt;" contractName="MCSService.WebService1Soap" name="WebService1Soap" />
<endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mattest.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;customBinding&quot; bindingConfiguration=&quot;WebService1Soap12&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap12&quot; /&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mattest.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;customBinding&quot; bindingConfiguration=&quot;WebService1Soap12&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap12&quot; /&gt;" contractName="MCSService.WebService1Soap" name="WebService1Soap12" />
<endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mat.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;WebService1Soap&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap&quot; /&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mat.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;WebService1Soap&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap&quot; /&gt;" contractName="MCSService.WebService1Soap" name="WebService1Soap" />
<endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mat.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;customBinding&quot; bindingConfiguration=&quot;WebService1Soap12&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap12&quot; /&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://mat.cwcec.com/LocWebServices/WebService1.asmx&quot; binding=&quot;customBinding&quot; bindingConfiguration=&quot;WebService1Soap12&quot; contract=&quot;MCSService.WebService1Soap&quot; name=&quot;WebService1Soap12&quot; /&gt;" contractName="MCSService.WebService1Soap" name="WebService1Soap12" />
</endpoints>
</configurationSnapshot>

View File

@ -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="3WsJQm8+47Y+tKXgcQf3xwpSakU=">
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="uG86B3WT1jeys7x2zmrq1Sa3bTc=">
<bindingConfigurations>
<bindingConfiguration bindingType="basicHttpBinding" name="WebService1Soap">
<properties>
@ -263,10 +263,10 @@
</bindingConfiguration>
</bindingConfigurations>
<endpoints>
<endpoint name="WebService1Soap" contract="MCSService.WebService1Soap" bindingType="basicHttpBinding" address="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" bindingConfiguration="WebService1Soap">
<endpoint name="WebService1Soap" contract="MCSService.WebService1Soap" bindingType="basicHttpBinding" address="http://mat.cwcec.com/LocWebServices/WebService1.asmx" bindingConfiguration="WebService1Soap">
<properties>
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>http://mattest.cwcec.com/LocWebServices/WebService1.asmx</serializedValue>
<serializedValue>http://mat.cwcec.com/LocWebServices/WebService1.asmx</serializedValue>
</property>
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
@ -348,10 +348,10 @@
</property>
</properties>
</endpoint>
<endpoint name="WebService1Soap12" contract="MCSService.WebService1Soap" bindingType="customBinding" address="http://mattest.cwcec.com/LocWebServices/WebService1.asmx" bindingConfiguration="WebService1Soap12">
<endpoint name="WebService1Soap12" contract="MCSService.WebService1Soap" bindingType="customBinding" address="http://mat.cwcec.com/LocWebServices/WebService1.asmx" bindingConfiguration="WebService1Soap12">
<properties>
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>http://mattest.cwcec.com/LocWebServices/WebService1.asmx</serializedValue>
<serializedValue>http://mat.cwcec.com/LocWebServices/WebService1.asmx</serializedValue>
</property>
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />

View File

@ -2,7 +2,6 @@
{
using Newtonsoft.Json.Linq;
using System;
using System.Timers;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -10,355 +9,237 @@
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)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getPoDetails(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getPoDetails(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_ContractQuantitySheet where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_ContractQuantitySheet where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_ContractQuantitySheet.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_ContractQuantitySheet contractQuantitySheet = new Model.CLGL_ContractQuantitySheet();
contractQuantitySheet.PPGUID = item["PPGUID"].ToString();
contractQuantitySheet.ProjectId = projectId.ToString();
contractQuantitySheet.MaterialUse = item["材料用途"].ToString();
contractQuantitySheet.ContractCode = item["合同号"].ToString();
contractQuantitySheet.Major = item["专业"].ToString();
contractQuantitySheet.PSGUID = item["PSGUID"].ToString();
contractQuantitySheet.RDGUID = item["RDGUID"].ToString();
contractQuantitySheet.MaterialCode = item["材料编码"].ToString();
contractQuantitySheet.TagNo = item["位号"].ToString();
contractQuantitySheet.BuyQuantity = item["采购量"].ToString();
contractQuantitySheet.Remark = item["备注"].ToString();
contractQuantitySheet.DeviceCode = item["装置号"].ToString();
contractQuantitySheet.MainItemCode = item["主项号"].ToString();
contractQuantitySheet.UnitName = item["企业中文名称"].ToString();
db.CLGL_ContractQuantitySheet.InsertOnSubmit(contractQuantitySheet);
db.SubmitChanges();
}
db.CLGL_ContractQuantitySheet.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_ContractQuantitySheet contractQuantitySheet = new Model.CLGL_ContractQuantitySheet();
contractQuantitySheet.PPGUID = item["PPGUID"].ToString();
contractQuantitySheet.ProjectId = projectId.ToString();
contractQuantitySheet.MaterialUse = item["材料用途"].ToString();
contractQuantitySheet.ContractCode = item["合同号"].ToString();
contractQuantitySheet.Major = item["专业"].ToString();
contractQuantitySheet.PSGUID = item["PSGUID"].ToString();
contractQuantitySheet.RDGUID = item["RDGUID"].ToString();
contractQuantitySheet.MaterialCode = item["材料编码"].ToString();
contractQuantitySheet.TagNo = item["位号"].ToString();
contractQuantitySheet.BuyQuantity = item["采购量"].ToString();
contractQuantitySheet.Remark = item["备注"].ToString();
contractQuantitySheet.DeviceCode = item["装置号"].ToString();
contractQuantitySheet.MainItemCode = item["主项号"].ToString();
contractQuantitySheet.UnitName = item["企业中文名称"].ToString();
db.CLGL_ContractQuantitySheet.InsertOnSubmit(contractQuantitySheet);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPoDetails");
}
}
public static void getIssueDetails(long projectId)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getIssueDetails(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getIssueDetails(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_PickMaterialRecord where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_PickMaterialRecord where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_PickMaterialRecord.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_PickMaterialRecord pickMaterialRecord = new Model.CLGL_PickMaterialRecord();
pickMaterialRecord.IDGUID = item["IDGUID"].ToString();
pickMaterialRecord.ProjectId = projectId.ToString();
pickMaterialRecord.PickCode = item["领料单号"].ToString();
pickMaterialRecord.PickDate = Funs.GetNewDateTime(item["领料时间"].ToString());
pickMaterialRecord.PickUnit = item["领料单位"].ToString();
pickMaterialRecord.PickLimitDate = Funs.GetNewDateTime(item["领料截止时间"].ToString());
pickMaterialRecord.State = item["领料单审批状态代码"].ToString();
pickMaterialRecord.ISGUID = item["ISGUID"].ToString();
pickMaterialRecord.PLGUID = item["PLGUID"].ToString();
pickMaterialRecord.Major = item["专业"].ToString();
pickMaterialRecord.PSGUID = item["PSGUID"].ToString();
pickMaterialRecord.MaterialCode = item["材料编码"].ToString();
pickMaterialRecord.TagNo = item["位号"].ToString();
pickMaterialRecord.ClaimQuantity = item["申领量"].ToString();
pickMaterialRecord.ApproveQuantity = item["批准量"].ToString();
pickMaterialRecord.ActualQuantity = item["实发量"].ToString();
pickMaterialRecord.DHGUID = item["DHGUID"].ToString();
pickMaterialRecord.Remark = item["发料备注"].ToString();
pickMaterialRecord.DeviceCode = item["装置号"].ToString();
pickMaterialRecord.MainItemCode = item["主项号"].ToString();
db.CLGL_PickMaterialRecord.InsertOnSubmit(pickMaterialRecord);
db.SubmitChanges();
}
db.CLGL_PickMaterialRecord.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_PickMaterialRecord pickMaterialRecord = new Model.CLGL_PickMaterialRecord();
pickMaterialRecord.IDGUID = item["IDGUID"].ToString();
pickMaterialRecord.ProjectId = projectId.ToString();
pickMaterialRecord.PickCode = item["领料单号"].ToString();
pickMaterialRecord.PickDate = Funs.GetNewDateTime(item["领料时间"].ToString());
pickMaterialRecord.PickUnit = item["领料单位"].ToString();
pickMaterialRecord.PickLimitDate = Funs.GetNewDateTime(item["领料截止时间"].ToString());
pickMaterialRecord.State = item["领料单审批状态代码"].ToString();
pickMaterialRecord.ISGUID = item["ISGUID"].ToString();
pickMaterialRecord.PLGUID = item["PLGUID"].ToString();
pickMaterialRecord.Major = item["专业"].ToString();
pickMaterialRecord.PSGUID = item["PSGUID"].ToString();
pickMaterialRecord.MaterialCode = item["材料编码"].ToString();
pickMaterialRecord.TagNo = item["位号"].ToString();
pickMaterialRecord.ClaimQuantity = item["申领量"].ToString();
pickMaterialRecord.ApproveQuantity = item["批准量"].ToString();
pickMaterialRecord.ActualQuantity = item["实发量"].ToString();
pickMaterialRecord.DHGUID = item["DHGUID"].ToString();
pickMaterialRecord.Remark = item["发料备注"].ToString();
pickMaterialRecord.DeviceCode = item["装置号"].ToString();
pickMaterialRecord.MainItemCode = item["主项号"].ToString();
db.CLGL_PickMaterialRecord.InsertOnSubmit(pickMaterialRecord);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getIssueDetails");
}
}
public static void getPartNoInfo(long projectId)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getPartNoInfo(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getPartNoInfo(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_Material where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_Material where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_Material.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_Material material = new Model.CLGL_Material();
material.Id = SQLHelper.GetNewID();
material.ProjectId = projectId.ToString();
material.MaterialCode = item["材料编码"].ToString();
material.TagNo = item["位号"].ToString();
material.MaterialName = item["材料名称"].ToString();
material.Def = item["规格描述"].ToString();
material.Unit = item["计量单位"].ToString();
db.CLGL_Material.InsertOnSubmit(material);
db.SubmitChanges();
}
db.CLGL_Material.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_Material material = new Model.CLGL_Material();
material.Id = SQLHelper.GetNewID();
material.ProjectId = projectId.ToString();
material.MaterialCode = item["材料编码"].ToString();
material.TagNo = item["位号"].ToString();
material.MaterialName = item["材料名称"].ToString();
material.Def = item["规格描述"].ToString();
material.Unit = item["计量单位"].ToString();
db.CLGL_Material.InsertOnSubmit(material);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
}
}
public static void getShelvesNo(long projectId)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getShelvesNo(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getShelvesNo(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_GoodsShelves where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_GoodsShelves where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_GoodsShelves.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_GoodsShelves goodsShelves = new Model.CLGL_GoodsShelves();
goodsShelves.DHGUID = item["DHGUID"].ToString();
goodsShelves.ProjectId = projectId.ToString();
goodsShelves.GoodsShelvesCode = item["货架编号"].ToString();
goodsShelves.Def = item["货架编号描述"].ToString();
db.CLGL_GoodsShelves.InsertOnSubmit(goodsShelves);
db.SubmitChanges();
}
db.CLGL_GoodsShelves.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_GoodsShelves goodsShelves = new Model.CLGL_GoodsShelves();
goodsShelves.DHGUID = item["DHGUID"].ToString();
goodsShelves.ProjectId = projectId.ToString();
goodsShelves.GoodsShelvesCode = item["货架编号"].ToString();
goodsShelves.Def = item["货架编号描述"].ToString();
db.CLGL_GoodsShelves.InsertOnSubmit(goodsShelves);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getPartNoInfo");
}
}
public static void getSubcontractor(long projectId)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getSubcontractor(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getSubcontractor(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_SubUnit where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_SubUnit where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_SubUnit.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_SubUnit subUnit = new Model.CLGL_SubUnit();
subUnit.Id = SQLHelper.GetNewID();
subUnit.ProjectId = projectId.ToString();
subUnit.SubUnitCode = item["分包商编号"].ToString();
subUnit.SubUnitName = item["分包商名称"].ToString();
db.CLGL_SubUnit.InsertOnSubmit(subUnit);
db.SubmitChanges();
}
db.CLGL_SubUnit.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_SubUnit subUnit = new Model.CLGL_SubUnit();
subUnit.Id = SQLHelper.GetNewID();
subUnit.ProjectId = projectId.ToString();
subUnit.SubUnitCode = item["分包商编号"].ToString();
subUnit.SubUnitName = item["分包商名称"].ToString();
db.CLGL_SubUnit.InsertOnSubmit(subUnit);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getSubcontractor");
}
}
public static void getVendor()
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getVendor();
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getVendor();
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_Supplier select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_Supplier select x;
if (q.Count() > 0)
{
db.CLGL_Supplier.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_Supplier supplier = new Model.CLGL_Supplier();
supplier.Id = SQLHelper.GetNewID();
supplier.SupplierName = item["企业中文名称"].ToString();
supplier.SupplierCode = item["厂商企标ID"].ToString();
db.CLGL_Supplier.InsertOnSubmit(supplier);
db.SubmitChanges();
}
db.CLGL_Supplier.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_Supplier supplier = new Model.CLGL_Supplier();
supplier.Id = SQLHelper.GetNewID();
supplier.SupplierName = item["企业中文名称"].ToString();
supplier.SupplierCode = item["厂商企标ID"].ToString();
db.CLGL_Supplier.InsertOnSubmit(supplier);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
}
}
public static void getReqDetails(long projectId)
{
try
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getReqDetails(projectId);
if (!string.IsNullOrEmpty(details))
{
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
var details = mscsC.getReqDetails(projectId);
if (!string.IsNullOrEmpty(details))
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_PurchaseRequisition where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.CLGL_PurchaseRequisition where x.ProjectId == projectId.ToString() select x;
if (q.Count() > 0)
{
db.CLGL_PurchaseRequisition.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_PurchaseRequisition purchaseRequisition = new Model.CLGL_PurchaseRequisition();
purchaseRequisition.Id = SQLHelper.GetNewID();
purchaseRequisition.RSGUID = item["RSGUID"].ToString();
purchaseRequisition.ProjectId = projectId.ToString();
purchaseRequisition.PurchaseRequisitionCode = item["请购单号"].ToString();
purchaseRequisition.PurchaseRequisitionName = item["请购单名称"].ToString();
purchaseRequisition.SiteRequisition = item["现场请购"].ToString();
purchaseRequisition.Major = item["专业名称"].ToString();
purchaseRequisition.RDGUID = item["RDGUID"].ToString();
purchaseRequisition.MaterialClass = item["材料等级"].ToString();
purchaseRequisition.MaterialCode = item["材料编码"].ToString();
purchaseRequisition.TagNo = item["位号"].ToString();
purchaseRequisition.DesignQuantity = item["设计量"].ToString();
purchaseRequisition.SurplusQuantity = item["余量"].ToString();
purchaseRequisition.RequisitionQuantity = item["请购量"].ToString();
purchaseRequisition.Def = item["请购说明"].ToString();
purchaseRequisition.DeviceCode = item["装置号"].ToString();
purchaseRequisition.MainItemCode = item["主项号"].ToString();
purchaseRequisition.MaterialUse = item["材料用途"].ToString();
purchaseRequisition.Remark = item["采购说明"].ToString();
db.CLGL_PurchaseRequisition.InsertOnSubmit(purchaseRequisition);
db.SubmitChanges();
}
db.CLGL_PurchaseRequisition.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_PurchaseRequisition purchaseRequisition = new Model.CLGL_PurchaseRequisition();
purchaseRequisition.Id = SQLHelper.GetNewID();
purchaseRequisition.RSGUID = item["RSGUID"].ToString();
purchaseRequisition.ProjectId = projectId.ToString();
purchaseRequisition.PurchaseRequisitionCode = item["请购单号"].ToString();
purchaseRequisition.PurchaseRequisitionName = item["请购单名称"].ToString();
purchaseRequisition.SiteRequisition = item["现场请购"].ToString();
purchaseRequisition.Major = item["专业名称"].ToString();
purchaseRequisition.RDGUID = item["RDGUID"].ToString();
purchaseRequisition.MaterialClass = item["材料等级"].ToString();
purchaseRequisition.MaterialCode = item["材料编码"].ToString();
purchaseRequisition.TagNo = item["位号"].ToString();
purchaseRequisition.DesignQuantity = item["设计量"].ToString();
purchaseRequisition.SurplusQuantity = item["余量"].ToString();
purchaseRequisition.RequisitionQuantity = item["请购量"].ToString();
purchaseRequisition.Def = item["请购说明"].ToString();
purchaseRequisition.DeviceCode = item["装置号"].ToString();
purchaseRequisition.MainItemCode = item["主项号"].ToString();
purchaseRequisition.MaterialUse = item["材料用途"].ToString();
purchaseRequisition.Remark = item["采购说明"].ToString();
db.CLGL_PurchaseRequisition.InsertOnSubmit(purchaseRequisition);
db.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "材料管理接口定时器", "MCSWebService.getVendor");
}
}
}

View File

@ -264,6 +264,7 @@
<SubType>Designer</SubType>
</Content>
<Content Include="common\Menu_TestRun.xml" />
<Content Include="common\Menu_CLGL.xml" />
<Content Include="common\Menu_ZHGL.xml" />
<Content Include="common\themes.aspx" />
<Content Include="Controls\FlowOperateControl.ascx" />

File diff suppressed because it is too large Load Diff