webservice 调用修改
This commit is contained in:
@@ -285,32 +285,29 @@ namespace FineUIPro.Web.ZHGL.ServerCheck
|
||||
private void UpSubUnitReport(string SubUnitReportId)
|
||||
{
|
||||
///创建客户端服务
|
||||
//var poxy = Web.ServiceProxy.CreateServiceClient();
|
||||
//poxy.DataInsertSupervise_SubUnitReportItemItemTableCompleted += new EventHandler<HSSEService.DataInsertSupervise_SubUnitReportItemItemTableCompletedEventArgs>(poxy_DataInsertSupervise_SubUnitReportTableCompleted);
|
||||
//var subUnitReport = from x in Funs.DB.View_Supervise_SubUnitReportItem
|
||||
// // join y in Funs.DB.AttachFile on x.SubUnitReportItemId equals y.ToKeyId
|
||||
// where x.SubUnitReportId == SubUnitReportId && (x.UpState == BLL.Const.UpState_2 || x.UpState == BLL.Const.UpState_4 || x.UpState == null)
|
||||
// select new HSSEService.Supervise_SubUnitReportItem
|
||||
// {
|
||||
// SubUnitReportItemId = x.SubUnitReportItemId,
|
||||
// ReportTitle = x.ReportTitle,
|
||||
// ReportContent = x.ReportContent,
|
||||
// // AttachUrl = x.AttachUrl,
|
||||
// ReportDate = x.ReportDate,
|
||||
// State = x.State,
|
||||
// ////附件转为字节传送
|
||||
// //FileContext = FileStructService.GetFileStructByAttachUrl(x.AttachUrl),
|
||||
|
||||
// AttachFileId = x.AttachFileId,
|
||||
// ToKeyId = x.ToKeyId,
|
||||
// AttachSource = x.AttachSource,
|
||||
// AttachUrl = x.AttachUrl,
|
||||
// ////附件转为字节传送
|
||||
// FileContext = FileStructService.GetMoreFileStructByAttachUrl(x.AttachUrl),
|
||||
|
||||
// };
|
||||
//poxy.DataInsertSupervise_SubUnitReportItemItemTableAsync(subUnitReport.ToList());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.trSubUnitReport.SelectedNodeID))
|
||||
{
|
||||
SaveData(BLL.Const.UpState_2);
|
||||
string code = CNCECHSSEGetWebService.UpSupervise_SubUnitReportItem(this.SubUnitReportId, this.CurrUser);
|
||||
if (code == "1")
|
||||
{
|
||||
ShowNotify("同步成功!", MessageBoxIcon.Success);
|
||||
this.InitTreeMenu();
|
||||
this.EmptyText();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error);
|
||||
}
|
||||
this.InitTreeMenu();
|
||||
this.EmptyText();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请选择上报名称!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 企业安全文件上报到集团公司
|
||||
|
||||
Reference in New Issue
Block a user