|
|
|
@ -518,32 +518,7 @@ namespace DSWeb.Areas.Account.Controllers
|
|
|
|
|
|
|
|
|
|
var headdata = ChpayapplicationDAL.GetData(" BILLNO='" + bill + "'", Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
|
|
|
|
|
//看是否有系统参数 泛微Appid
|
|
|
|
|
//如有且有值 方可执行
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (ConfigurationManager.AppSettings["FanWeiOAAPI"] == "true")
|
|
|
|
|
{
|
|
|
|
|
var 泛微Appid = MsSysParamSetDAL.GetSysParamValue("FanWei_appid");
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(泛微Appid))
|
|
|
|
|
{
|
|
|
|
|
//泛微OAHelper.GetToken();
|
|
|
|
|
|
|
|
|
|
var userid = Convert.ToString(Session["USERID"]);
|
|
|
|
|
var usercode = Convert.ToString(Session["CODENAME"]);
|
|
|
|
|
var companyid = Convert.ToString(Session["COMPANYID"]);
|
|
|
|
|
|
|
|
|
|
泛微OAHelper.PostApplication(headdata, userid, usercode, companyid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
var testresult = new DBResult();
|
|
|
|
|
var json2 = JsonConvert.Serialize(testresult);
|
|
|
|
|
return new ContentResult() { Content = json2 };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (headdata.BILLSTATUS == 1||headdata.BILLSTATUS == 6)
|
|
|
|
@ -598,22 +573,7 @@ namespace DSWeb.Areas.Account.Controllers
|
|
|
|
|
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
|
|
|
|
|
|
|
|
|
|
if (bl) {
|
|
|
|
|
//看是否有系统参数 泛微Appid
|
|
|
|
|
//如有且有值 方可执行
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (ConfigurationManager.AppSettings["FanWeiOAAPI"] == "true")
|
|
|
|
|
{
|
|
|
|
|
var 泛微Appid = MsSysParamSetDAL.GetSysParamValue("泛微Appid");
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(泛微Appid))
|
|
|
|
|
{
|
|
|
|
|
泛微OAHelper.GetSecret();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
ChpayapplicationDAL.FanWeiOA_Submit(bill, Convert.ToString(Session["USERID"]), Convert.ToString(Session["CODENAME"]), Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -648,7 +608,7 @@ namespace DSWeb.Areas.Account.Controllers
|
|
|
|
|
public ContentResult SubmitAuditList(string bills)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
DBResult result = ChpayapplicationDAL.SubmitAuditList("FeeSettleAudit", Convert.ToString(Session["USERID"]), bills, Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
DBResult result = ChpayapplicationDAL.SubmitAuditList("FeeSettleAudit", bills, Convert.ToString(Session["USERID"]), Convert.ToString(Session["CODENAME"]), Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
if (result.Message2 == "1") {
|
|
|
|
|
var PAYAUDITAUTOCLOSEDR = MsSysParamSetDAL.GetData("PARAMNAME='PAYAUDITAUTOCLOSEDR'");
|
|
|
|
|
if (PAYAUDITAUTOCLOSEDR.PARAMVALUE == "1")
|
|
|
|
@ -707,6 +667,8 @@ namespace DSWeb.Areas.Account.Controllers
|
|
|
|
|
var json = JsonConvert.Serialize(result);
|
|
|
|
|
return new ContentResult() { Content = json };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ContentResult AuditList(string data)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|