word盖章不同组织

This commit is contained in:
2025-11-08 01:39:21 +08:00
parent 874bbce384
commit 400aec324d
2 changed files with 25 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ namespace Pilot_KD_Parino.Sal_Order
string FIsDebugging = this.View.Model.GetValue("FIsDebugging")?.ToString();
DynamicObject F_projectname = this.View.Model.GetValue("F_projectname") as DynamicObject;
int xiaoShouZuZhi = 0; //除了指定合同其他合同都是0
if (FCustId == null)
{
this.View.ShowErrMessage("客户不允许为空!");
@@ -103,6 +103,14 @@ namespace Pilot_KD_Parino.Sal_Order
return;
}
string projectname = "";
List<int> list = new List<int>();
list.Add(100305);
list.Add(438223);
list.Add(1467475);
if (list.Contains(oId))
{
xiaoShouZuZhi = oId;
}
if (oId != 438223)
{
projectname = F_projectname["NAME"]?.ToString();
@@ -112,6 +120,8 @@ namespace Pilot_KD_Parino.Sal_Order
projectname = projectname.Replace("*", " ");
projectname = projectname.Replace(":", "");
}
//武汉派诺,
string FPath = string.Format(@"D:\导出Word\{0}\{1}\{2}\{3}年\{4}月\{5}日\{6}.docx", this.Context.DataCenterName, "销售订单",
this.View.Model.DataObject["Billno"], DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, string.Format("{0}-{1}-{2}-{3}-{4}", FDATE.ToString("yyyy-MM-dd"), F_cocntractnumber
@@ -177,12 +187,12 @@ namespace Pilot_KD_Parino.Sal_Order
FOrdercategory = "HH";
}
}
//获取模板地址
var TempModelPath = SQL.SqlManage.GetTempModelPath(this.Context, FOrdercategory);
var TempModelPath = SQL.SqlManage.GetTempModelPath(this.Context, FOrdercategory,xiaoShouZuZhi);
if (TempModelPath == null)
{
this.View.ShowErrMessage("找不到对应的word模板");
this.View.ShowErrMessage("找不到对应的word模板2");
return;
}
var formId = this.View.Model.DataObject["FFormId"];