コード例 #1
0
        /// <summary>
        /// 公共方法,组装参数
        /// </summary>
        /// <param name="data"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        protected string Post(SortedDictionary<string, string> sParaTemp, string url) 
        {
            CashierModel cashier = new CashierDAL().getConfig();
            DeviceModel device = new DeviceDAL().getConfig();

            sParaTemp.Add("device_no", device.device_no);
            sParaTemp.Add("cashier_id", cashier.cashier_id);

            string result = PostData.BuildRequest(sParaTemp,url);
            return result;
        }
コード例 #2
0
        /// <summary>
        /// 公共方法,组装参数
        /// </summary>
        /// <param name="data"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        protected string Post(SortedDictionary <string, string> sParaTemp, string url)
        {
            CashierModel cashier = new CashierDAL().getConfig();
            DeviceModel  device  = new DeviceDAL().getConfig();

            sParaTemp.Add("device_no", device.device_no);
            sParaTemp.Add("cashier_id", cashier.cashier_id);

            string result = PostData.BuildRequest(sParaTemp, url);

            return(result);
        }