Beispiel #1
0
        /// <summary> 配件销售开单
        /// </summary>
        /// <param name="updateTime">最后更新时间</param>
        /// <returns>返回同步配件信息条数,如为-1,同步失败</returns>
        public static bool UpLoadPartSales()
        {
            ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
            SUPartSale.clientInfo clientInfo = new SUPartSale.clientInfo();
            clientInfo.clientID  = GlobalStaticObj_Servier.Instance.ClientID;
            clientInfo.serviceID = "partSaleSU";
            SUPartSale.partSale pSale = new SUPartSale.partSale();
            pSale.amount        = "120";
            pSale.cust_name     = "add";
            pSale.cust_phone    = "123123";
            pSale.license_plate = "豫G99300";
            pSale.remark        = "dfgdfsdf";
            pSale.sale_date     = "2014-10-10  14:46:44";
            pSale.turner        = "14H197P-0013";
            SUPartSale.partDetail[] pArry = new SUPartSale.partDetail[1];
            SUPartSale.partDetail   p0    = new SUPartSale.partDetail();
            p0.amount         = "12";
            p0.business_count = "1";
            p0.business_price = "12";
            p0.car_parts_code = "2100-00233";
            p0.parts_remark   = "asdfasdf";
            p0.remark         = "asdfasf";
            p0.wh_code        = "CK00000202";
            pArry[0]          = p0;
            pSale.partDetails = pArry;
            SUPartSale.partSaleSUService serv = new SUPartSale.partSaleSUService();
            int time = serv.Timeout;

            SUPartSale.Result result = serv.partSaleSU(GlobalStaticObj_Servier.Instance.ClientID, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "CREATE", pSale, clientInfo);
            if (result.state == "S")
            {
                return(true);
            }
            return(false);
        }
Beispiel #2
0
 /// <remarks/>
 public void partSaleSUAsync(string RequestUser, string RequestTime, string RequestType, partSale partSale, clientInfo clientInfo)
 {
     this.partSaleSUAsync(RequestUser, RequestTime, RequestType, partSale, clientInfo, null);
 }
Beispiel #3
0
        public Result partSaleSU([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string RequestUser, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string RequestTime, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string RequestType, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] partSale partSale, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] clientInfo clientInfo)
        {
            object[] results = this.Invoke("partSaleSU", new object[] {
                RequestUser,
                RequestTime,
                RequestType,
                partSale,
                clientInfo
            });

            return((Result)(results[0]));
        }
Beispiel #4
0
 /// <remarks/>
 public void partSaleSUAsync(string RequestUser, string RequestTime, string RequestType, partSale partSale, clientInfo clientInfo, object userState)
 {
     if ((this.partSaleSUOperationCompleted == null))
     {
         this.partSaleSUOperationCompleted = new System.Threading.SendOrPostCallback(this.OnpartSaleSUOperationCompleted);
     }
     this.InvokeAsync("partSaleSU", new object[] {
         RequestUser,
         RequestTime,
         RequestType,
         partSale,
         clientInfo
     }, this.partSaleSUOperationCompleted, userState);
 }