/// <summary> /// ensName /// </summary> /// <param name="ensName"></param> public void BindEns(string ensName) { this.UIBindKey = ensName; this.HisLGType = LGType.FK; FF.CCFlowAPISoapClient da = Glo.GetCCFlowAPISoapClientServiceInstance(); da.RequestSFTableAsync(ensName); da.RequestSFTableCompleted += new EventHandler <FF.RequestSFTableCompletedEventArgs>(da_RequestSFTableCompleted); }
/// <summary> /// 发送 /// </summary> private void Send() { this.loadingWindow.Title = "正在保存并发送..."; this.loadingWindow.Show(); FF.CCFlowAPISoapClient sendWorkNode = Glo.GetCCFlowAPISoapClientServiceInstance(); sendWorkNode.Node_SendWorkAsync(Glo.FK_Flow, Glo.FK_Node, Glo.WorkID, Glo.UserNo, this.GenerFrmDataSet().ToXml(true, false)); sendWorkNode.Node_SendWorkCompleted += new EventHandler <FF.Node_SendWorkCompletedEventArgs>(sendWorkNode_Node_SendWorkCompleted); }
/// <summary> /// 入口点 /// </summary> public MainPage() { InitializeComponent(); #region 获取参数 FF.CCFlowAPISoapClient da = Glo.GetCCFlowAPISoapClientServiceInstance(); da.GenerWorkNodeAsync(Glo.FK_Flow, Glo.FK_Node, Glo.WorkID, Glo.UserNo); da.GenerWorkNodeCompleted += new EventHandler <FF.GenerWorkNodeCompletedEventArgs>(BindFrm); #endregion 获取参数 }
/// <summary> /// 删除它 /// </summary> public void DeleteIt() { if (MessageBox.Show("您确定要删除[" + this.Name + "]吗?如果确定它相关的字段与设置也将会被删除,以前产生的历史数据也会被删除。", "删除提示", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { return; } FF.CCFlowAPISoapClient da = Glo.GetCCFlowAPISoapClientServiceInstance(); da.DoTypeAsync("DelM2M", this.Name, null, null, null, null, null); da.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(da_DoTypeCompleted); }
public void BindSQL(string sql) { try { FF.CCFlowAPISoapClient da = Glo.GetCCFlowAPISoapClientServiceInstance(); da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void LoadDtl() { FF.CCFlowAPISoapClient da = Glo.GetCCFlowAPISoapClientServiceInstance(); da.RunSQLReturnTableAsync("SELECT * FROM Sys_MapM2M WHERE NoOfObj='" + this.Name + "' AND FK_MapData='" + Glo.FK_MapData + "'"); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); }