亲子乱子伦视频第一集

<optgroup id="jjdlt"></optgroup><ol id="jjdlt"><blockquote id="jjdlt"></blockquote></ol><optgroup id="jjdlt"><li id="jjdlt"><del id="jjdlt"></del></li></optgroup>

    <optgroup id="jjdlt"><em id="jjdlt"><del id="jjdlt"></del></em></optgroup>

    1. <span id="jjdlt"><blockquote id="jjdlt"></blockquote></span>

      <span id="jjdlt"><output id="jjdlt"><nav id="jjdlt"></nav></output></span>
      <span id="jjdlt"></span>
      <strong id="jjdlt"></strong>

        <optgroup id="jjdlt"><em id="jjdlt"><del id="jjdlt"></del></em></optgroup>
        歡迎來到蘇州瑞信防偽科技有限公司官方網站!
        最新資訊
        熱門資訊

        提貨功能開發-瑞信在線提貨系統源代碼分析

        提貨功能開發瑞信在線提貨系統(自助提貨系統)對接順豐快遞電子面單的技術研究及源代碼分析,瑞信在線提貨系統,又稱大閘蟹自助提貨系統,主用用于各種禮卡禮券的在線及自助提貨。

        商家采用該系統益處:

        1:消費者可以任意時刻預約提貨,無需通過電話、短信等繁瑣的方式。

        2:預約提貨的時間段不再受時間限制(24小時均可提貨)。

        3:消費者提貨后,商家可以實時看到新的訂單信息。

        4:假設消費者預約的發貨日期是:2017-10-12,瑞信在線提貨系統會在當天打印該順豐電子面單。

        5:商家通過在線提貨系統打印的順豐電子面單,來安排發貨(打印出來的面單上會打印出產品的具體型號)。

         

        順豐電子面單系統采用WebService對外開放的技術接口,瑞信在線提貨系統完美對接順豐電子面單系統,而且已經穩定運行多年,截止2017年,通過瑞信在線提貨系統對接的順豐電子面單系統累計發貨量過500萬筆。

         

        下面我們來從瑞信在線提貨系統源代碼的角度分析告訴大家,為什么我們的系統為什么如此穩定且安全!在對接之前,我們首先要向當地的順豐工作人員提出申請,申請周期一般是7天左右,申請通過后,順豐會給我們分配對應的賬號,密碼,校驗碼。我們的提貨系統獲得這些信息后,便可以自動和其對接。

        提貨功能開發-瑞信在線提貨系統源代碼分析

         

        public void OpNormalOrderByJxs()

        {

        try

        {

        string sf_request = “”;

        string sf_monthcode;

        string sf_monthpwd;

        string sf_orderid;

        string orderid;

        string j_province;

        string j_city;

        string j_company;

        string j_contact;

        string j_tel;

        string j_address;

        string d_province;

        string d_city;

        string d_company;

        string d_contact;

        string d_tel;

        string d_address;

        string custid;

        string cargo_weight = “”;

        string sendstarttime;

        string sales_remark;

        int parcel_quantity = 0;

        List<string> CanPrintJxsList = getCanPrintJxsList();

        sfwb.CommonServiceService sf_webservice = new sfwb.CommonServiceService();

        for (int i = 0; i < CanPrintJxsList.Count; ++i)

        {

        string PrintJxs = CanPrintJxsList[i];//查找指定經銷商的訂單記錄

        string?sqlCmd?= string.Format(“select * from sales ?where ?sales_is_add_express=0 and sales_is_add_jxs=1 and sales_which_jxs_send=sales_which_jxs_send and sales_express_company='{1}’ and sales_pre_express_date<#{2}# order by sales_orderinfo_ewm”, PrintJxs, ForSetting.sf_express_name, GetTomorrow());

        DataSet set = ForDbHelper.getDataSet(sqlCmd);

        if (set != null && (set.Tables[0].Rows.Count > 0))

        {///查找指定經銷商的訂單記錄

        GetJxsInfoByID(PrintJxs);

        for (int j = 0; j < set.Tables[0].Rows.Count; ++j)

        {

        j_province?= ForSetting.companyinfo_j_province;// info_of_jxs.j_province;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_j_province"].ToString();

        j_city = ForSetting.companyinfo_j_city;// info_of_jxs.j_city;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_j_city"].ToString();

        j_company = info_of_jxs.j_company;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_name"].ToString();

        j_contact = info_of_jxs.j_contact;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_contact"].ToString();

        j_tel = info_of_jxs.j_tel;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_phone"].ToString();

        j_address = info_of_jxs.j_address;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_address"].ToString();

         

        ////老版本的

        sf_monthcode = ForSetting.companyinfo_sf_monthcode;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_sf_monthcode"].ToString();

        sf_monthpwd = ForSetting.companyinfo_sf_monthpwd;// bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_sf_monthpwd"].ToString();

        /////

        //j_province = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_j_province"].ToString();

        //j_city = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_j_city"].ToString();

        //j_company = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_name"].ToString();

        //j_contact = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_contact"].ToString();

        //j_tel = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_phone"].ToString();

        //j_address = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_address"].ToString();

        //custid = bigsfdzxfh.companyinfo_ds.Tables[0].Rows[0]["companyinfo_sf_custid"].ToString();

        custid = ForSetting.companyinfo_sf_custid;

        sf_orderid = set.Tables[0].Rows[j]["sales_guid"].ToString() + “_” + System.DateTime.Now.ToString(“yyyyMMddHHmmss”);

        orderid = set.Tables[0].Rows[j]["sales_guid"].ToString();

        d_province = set.Tables[0].Rows[j]["sales_d_province"].ToString();

        d_city = set.Tables[0].Rows[j]["sales_d_city"].ToString();

        d_company = set.Tables[0].Rows[j]["sales_oderinfo_user"].ToString();

        d_contact = set.Tables[0].Rows[j]["sales_oderinfo_user"].ToString();

        d_tel = set.Tables[0].Rows[j]["sales_orderinfo_phone"].ToString();

        d_address = set.Tables[0].Rows[j]["sales_orderinfo_address"].ToString();

        sales_remark = set.Tables[0].Rows[j]["sales_remark"].ToString();

        sendstarttime = System.DateTime.Now.ToString(ForSetting.datetimefmt);

        parcel_quantity = 1;

        cargo_weight = “”;// set.Tables[0].Rows[j]["quan_product_weight"].ToString();

        if (cargo_weight == “”)

        cargo_weight = “2”;

        txtResult.Text = string.Format(“一共有{0}筆訂單,需要同步順豐電子運單號!\r\n”, total_sf_amount) + string.Format(“正在同步第{0}筆訂單!,卡號:{1}”, ++CurSyncIndex, set.Tables[0].Rows[j]["sales_orderinfo_ewm"].ToString());

         

        List<string> tmp = getProvinceByJxs(PrintJxs);

        if (tmp != null)

        {

        for (int count = 0; count < tmp.Count; ++count)

        {

        if (tmp[count].Contains(d_province))

        {

        sf_request = string.Format(“<Request service=\”OrderService\” lang=\”zh-CN\”>\n<Head>{0},{1}</Head>\n<Body>\n<Order orderid=\”{2}\” express_type=\”1\” ?j_company=\”{3}\” ?j_contact=\”{4}\” j_tel=\”{5}\” ?j_address=\”{6}\” d_company=\”{7}\” d_contact=\”{8}\” d_tel=\”{9}\” d_address=\”{10}\” ?parcel_quantity=\”{11}\” ?pay_method=\”1\” custid=\”{12}\” ?cargo_total_weight=\”{13}\” ?sendstarttime=\”{14}\” ?remark=\”備注\” j_province=\”{15}\” ?j_city=\”{16}\” d_province=\”{17}\” d_city=\”{18}\”>\n<Cargo name=\”大閘蟹\” unit=\”個\”></Cargo>\n</Order>\n</Body>\n</Request>”, sf_monthcode, sf_monthpwd, sf_orderid, j_company, j_contact, j_tel, j_address, d_company, d_contact, d_tel, d_address, parcel_quantity, custid, cargo_weight, sendstarttime, j_province, j_city, d_province, d_city);

        break;

        }

        else

        {//這邊會冗余多執行幾次 沒有關系

        sf_request = string.Format(“<Request service=\”OrderService\” lang=\”zh-CN\”>\n<Head>{0},{1}</Head>\n<Body>\n<Order orderid=\”{2}\” express_type=\”1\” ?j_company=\”{3}\” ?j_contact=\”{4}\” j_tel=\”{5}\” ?j_address=\”{6}\” d_company=\”{7}\” d_contact=\”{8}\” d_tel=\”{9}\” d_address=\”{10}\” ?parcel_quantity=\”{11}\” ?pay_method=\”1\” custid=\”{12}\” ?cargo_total_weight=\”{13}\” ?sendstarttime=\”{14}\” ?remark=\”備注\” j_province=\”{15}\” ?j_city=\”{16}\” d_province=\”{17}\” d_city=\”{18}\”>\n<Cargo name=\”大閘蟹\” unit=\”個\”></Cargo>\n</Order>\n</Body>\n</Request>”, sf_monthcode, sf_monthpwd, sf_orderid, j_company, j_contact, j_tel, j_address, d_company, d_contact, d_tel, d_address, parcel_quantity, custid, cargo_weight, sendstarttime, j_province, j_city, d_province, d_city);

        }

        }

        }

        else

        {

        sf_request = string.Format(“<Request service=\”OrderService\” lang=\”zh-CN\”>\n<Head>{0},{1}</Head>\n<Body>\n<Order orderid=\”{2}\” express_type=\”1\” ?j_company=\”{3}\” ?j_contact=\”{4}\” j_tel=\”{5}\” ?j_address=\”{6}\” d_company=\”{7}\” d_contact=\”{8}\” d_tel=\”{9}\” d_address=\”{10}\” ?parcel_quantity=\”{11}\” ?pay_method=\”1\” custid=\”{12}\” ?cargo_total_weight=\”{13}\” ?sendstarttime=\”{14}\” ?remark=\”備注\” j_province=\”{15}\” ?j_city=\”{16}\” d_province=\”{17}\” d_city=\”{18}\”>\n<Cargo name=\”大閘蟹\” unit=\”個\”></Cargo>\n</Order>\n</Body>\n</Request>”, sf_monthcode, sf_monthpwd, sf_orderid, j_company, j_contact, j_tel, j_address, d_company, d_contact, d_tel, d_address, parcel_quantity, custid, cargo_weight, sendstarttime, j_province, j_city, d_province, d_city);

        }

         

        string result = sf_webservice.sfexpressService(sf_request);

         

        StreamWriter sw = new StreamWriter(“data.txt”,true);

        sw.WriteLine(sf_request);

        sw.WriteLine(result);

        sw.Close();

         

         

        XmlDocument domChild = new XmlDocument();

        XmlDocument dom = new XmlDocument();

        dom.LoadXml(result);

        int IsOk = 0;

        string descode = “”;

        string mailno = “”;

        string origincode = “”;

        string retError = “”;

        string filter_result=””;

        foreach (XmlNode xn in dom.DocumentElement.ChildNodes)

        {

        if (xn.Name == “Head”)

        {

        if (xn.InnerText == “OK”)

        {//下單成功

        IsOk = 1;

        }

        else

        {

        IsOk = 0;

        }

        }

        if (xn.Name == “Body”)

        {

        domChild.LoadXml(xn.InnerXml);

        if (IsOk == 1)

        {

        foreach (XmlAttribute att in domChild.DocumentElement.Attributes)

        {

        if (att.Name == “destcode”)

        descode = att.Value;

        if (att.Name == “mailno”)

        mailno = att.Value;

        if (att.Name == “origincode”)

        origincode = att.Value;

        if (att.Name == “filter_result”)

        filter_result = att.Value;

        }

        if (filter_result == “1”)

        {

        sqlCmd = string.Format(“update sales set sales_is_add_express=1,sales_add_express_date='{0}’,sales_express_number='{1}’,sf_mdd_code='{2}’,sales_is_getexpress_from_sf=1,sales_yjd_code='{3}’, sales_weight='{4}’ where sales_guid='{5}'”, System.DateTime.Now.ToString(ForSetting.datetimefmt), “人工確認”, descode, origincode, cargo_weight, orderid);

        }

        else if (filter_result == “2”)

        {

        sqlCmd = string.Format(“update sales set sales_is_add_express=1,sales_add_express_date='{0}’,sales_express_number='{1}’,sf_mdd_code='{2}’,sales_is_getexpress_from_sf=1,sales_yjd_code='{3}’, sales_weight='{4}’ where sales_guid='{5}'”, System.DateTime.Now.ToString(ForSetting.datetimefmt), mailno, descode, origincode, cargo_weight, orderid);

        }

        else if (filter_result == “3”)

        {

        sqlCmd = string.Format(“update sales set sales_is_add_express=1,sales_add_express_date='{0}’,sales_express_number='{1}’,sf_mdd_code='{2}’,sales_is_getexpress_from_sf=1,sales_yjd_code='{3}’, sales_weight='{4}’ where sales_guid='{5}'”, System.DateTime.Now.ToString(ForSetting.datetimefmt), “不可以派送”, descode, origincode, cargo_weight, orderid);

         

        }

        if (!ForDbHelper.ExecSqlCmd(sqlCmd))

        {

        MessageBox.Show(“錯誤信息,請截屏發給瑞信:” + ForDbHelper.DB_ERROR);

        return;

        }

         

        }

        }

        if (xn.Name == “ERROR”)

        {

        mailno = xn.InnerText;

        sqlCmd = string.Format(“update sales set sales_is_add_express=1,sales_add_express_date='{0}’,sales_express_number='{1}’,sales_is_getexpress_from_sf=2 where sales_guid='{2}'”, System.DateTime.Now.ToString(ForSetting.datetimefmt), mailno, orderid);

        if (!ForDbHelper.ExecSqlCmd(sqlCmd))

        {

        MessageBox.Show(“錯誤信息,請截屏發給瑞信:” + retError);

        return;

        }

         

         

        }

        }

        }

        }

        }

        }

        catch (Exception ex)

        {

        MessageBox.Show(“錯誤發生(0x6201609),您可以將該錯誤截屏發給瑞信(QQ:251665710)” + ex.Message);

        }

        }

        聯系我們

        蘇州瑞信防偽科技有限公司

        聯系人:郭先生

        聯系方式:137-7603-6517

        聯系地址:泰山路2號博濟科技產業園C幢一樓

        主營項目:產品防偽、防竄貨(防串貨)、溯源、微信二維碼防偽防串貨,卡券信息化管理領域

        服務項目

        蘇州瑞信防偽科技有限公司
        亲子乱子伦视频第一集
        <optgroup id="jjdlt"></optgroup><ol id="jjdlt"><blockquote id="jjdlt"></blockquote></ol><optgroup id="jjdlt"><li id="jjdlt"><del id="jjdlt"></del></li></optgroup>

          <optgroup id="jjdlt"><em id="jjdlt"><del id="jjdlt"></del></em></optgroup>

          1. <span id="jjdlt"><blockquote id="jjdlt"></blockquote></span>

            <span id="jjdlt"><output id="jjdlt"><nav id="jjdlt"></nav></output></span>
            <span id="jjdlt"></span>
            <strong id="jjdlt"></strong>

              <optgroup id="jjdlt"><em id="jjdlt"><del id="jjdlt"></del></em></optgroup>