Exemple #1
0
        /// <summary>
        /// 门店上传散客房间到中心服务器
        /// </summary>
        /// <returns></returns>
        public static int UpLoad_Qskyd_fjrb()
        {
            int    i = 0;
            string s = common_app.get_failure;

            Model.Qskyd_fjrb M_Qskyd_fjrb  = new Model.Qskyd_fjrb();
            BLL.Qskyd_fjrb   B_Qskyd_fjrb  = new BLL.Qskyd_fjrb();
            BLL.Fwx_other    B_Fwx_other   = new BLL.Fwx_other();
            DataSet          DS_Qskyd_fjrb = new  DataSet();
            DataSet          DS_Fwx_other  = new DataSet();

            DS_Qskyd_fjrb = B_Qskyd_fjrb.GetList("1=1");
            DS_Fwx_other  = B_Fwx_other.GetList("1=1");
            if (DS_Qskyd_fjrb != null && DS_Qskyd_fjrb.Tables[0].Rows.Count > 0)
            {
                object[] args = new object[2];
                args[0] = DS_Fwx_other;
                args[1] = DS_Qskyd_fjrb;
                object result = jdgl_res_head_app.DynamicWebServiceCall.InvokeWebService(url, "Qskyd_fjrb_temp_ADD", args);
                if (result.ToString() == common_file.common_app.get_suc)
                {
                    Common_Shsc.Updatshsc(DS_Qskyd_fjrb, "Qskyd_fjrb");
                    Common_Shsc.Updatshsc(DS_Fwx_other, "Fwx_other");
                    i += Common_Shsc.GetRowCount(DS_Qskyd_fjrb);
                    i += Common_Shsc.GetRowCount(DS_Fwx_other);
                    Common.AddMsg(DS_Qskyd_fjrb, "上传房间类别");
                    Common.AddMsg(DS_Fwx_other, "上传维修房");
                }
            }
            return(i++);
        }