//Qskyd_fjrb_lskr信息下载,供特定门店下载返回dataset public DataSet Qskyd_lskr_delete_download_DS(string yydh, out string csdatatime, out string jsdatatime) { BLL.Qskyd_lskr_delete B_Qskyd_lskr_delete = new BLL.Qskyd_lskr_delete(); Model.Qskyd_lskr_delete M_Qskyd_lskr_delete = new Model.Qskyd_lskr_delete(); Model.Lskr_sc_xz_sj M_Lskrscsj = new Model.Lskr_sc_xz_sj(); BLL.Lskr_sc_xz_sj B_Lskrscsj = new BLL.Lskr_sc_xz_sj(); string jstime = DateTime.Now.ToString(); DataSet DS_Qskyd_lskr_delete = new DataSet(); csdatatime = jsdatatime = string.Empty; //查询出上次上传时间 DateTime cstime = Convert.ToDateTime("1800-01-01"); if (yydh != "" && yydh != null) { List <Model.Lskr_sc_xz_sj> listlskr = B_Lskrscsj.GetModelList("yydh='" + yydh + "'"); if (listlskr.Count > 0) { M_Lskrscsj = listlskr[0]; cstime = M_Lskrscsj.scsj; jsdatatime = jstime; csdatatime = cstime.ToString(); DS_Qskyd_lskr_delete = B_Qskyd_lskr_delete.GetList(1000, "yydh<>'" + yydh + "' and czsj>='" + cstime + "' and czsj<'" + jstime + "'", "id"); } } else { LogHelper.WriteLog("中心服务器表Lskr_sc_xz_sj里没有配置yydh为:" + yydh + "的门店初始下载的记录信息,请先配置信息"); DS_Qskyd_lskr_delete = null; } return(DS_Qskyd_lskr_delete); }
//Qskyd_fjrb_lskr信息下载,供特定门店下载返回dataset public DataSet Qskyd_lskr_delete_download_DS(string yydh, out string csdatatime, out string jsdatatime) { BLL.Qskyd_lskr_delete B_Qskyd_lskr_delete = new BLL.Qskyd_lskr_delete(); Model.Qskyd_lskr_delete M_Qskyd_lskr_delete = new Model.Qskyd_lskr_delete(); Model.Lskr_sc_xz_sj M_Lskrscsj = new Model.Lskr_sc_xz_sj(); BLL.Lskr_sc_xz_sj B_Lskrscsj = new BLL.Lskr_sc_xz_sj(); //查询出上次上传时间 DateTime cstime = Convert.ToDateTime("1800-01-01"); if (yydh != "" && yydh != null) { M_Lskrscsj = B_Lskrscsj.GetModelList("yydh='" + yydh + "'")[0]; cstime = M_Lskrscsj.scsj; } string jstime = DateTime.Now.ToString(); DataSet DS_Qskyd_lskr_delete = new DataSet(); jsdatatime = jstime; csdatatime = cstime.ToString(); DS_Qskyd_lskr_delete = B_Qskyd_lskr_delete.GetList(1000, "yydh<>'" + yydh + "' and czsj>='" + cstime + "' and czsj<'" + jstime + "'", "id"); jsdatatime = jstime; csdatatime = cstime.ToString(); return(DS_Qskyd_lskr_delete); }
//上传Qskyd_lskr_delete public static void UpLoad_Qskyd_lskr_delete() { BLL.Qskyd_lskr_delete B_Qskyd_lskr_delete = new BLL.Qskyd_lskr_delete(); string strdat = DateTime.Now.ToString("yyyy-MM-dd"); DataSet DS_Qskyd_lskr_delete = B_Qskyd_lskr_delete.GetList(200, "ID>=0 and shsc=0 and convert(varchar(10),czsj,120)<'" + strdat + "' and yydh='" + yydh + "'", "id"); if (DS_Qskyd_lskr_delete != null && DS_Qskyd_lskr_delete.Tables[0].Rows.Count > 0) { object[] args = new object[1]; args[0] = DS_Qskyd_lskr_delete; object result = jdgl_res_head_app.DynamicWebServiceCall.InvokeWebService(url, "Qskyd_lskr_delete_UploadDS", args); if (result.ToString() == common_file.common_app.get_suc) { Common_Shsc.Updatshsc(DS_Qskyd_lskr_delete, "Qskyd_lskr_delete");//上传后修改本地shsh=1 } } DS_Qskyd_lskr_delete.Dispose(); }