void da_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e) { var selectedItem = this.tabControl1.SelectedItem as TabItem; if (null == selectedItem) { return; } //调用服务上传 try { loadingWindow.Show(); FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.UploadFileAsync(buffer, "\\Temp\\" + Glo.FK_MapData + ".xml"); da.UploadFileCompleted += new EventHandler <FF.UploadFileCompletedEventArgs>(da_UploadFileCompleted); } catch (Exception ex) { this.DialogResult = false; MessageBox.Show(ex.Message, "错误", MessageBoxButton.OK); } this.DialogResult = true; loadingWindow.DialogResult = false; }
private void OKButton_Click(object sender, RoutedEventArgs e) { loading.Show(); FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance(); ff.DoTypeAsync("FrmTempleteExp", Glo.FK_MapData, null, null, null, null); ff.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(ff_DoTypeCompleted); }
public void BindIt(BPImg img) { HisImg = img; this.TB_Url.Text = img.WinURL; Glo.BindComboBoxWinOpenTarget(this.DDL_WinName, img.WinTarget); this.Show(); }
/// <summary> /// 绑定这个控件. /// </summary> /// <param name="mypk"></param> public void BindData(string mypk) { this.Name = mypk; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync("SELECT * FROM Sys_FrmEle WHERE MyPK='" + mypk + "'"); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); }
private void OKButton_Click(object sender, RoutedEventArgs e) { string sql = "UPDATE Sys_MapData SET Name='" + this.TB_FrmName.Text + "', Designer='" + this.TB_Designer.Text + "',DesignerUnit='" + this.TB_DesignerUnit.Text + "',DesignerContext='" + this.TB_DesignerContext.Text + "' WHERE No='" + Glo.FK_MapData + "'"; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLsAsync(sql); da.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(da_RunSQLsCompleted); }
public void BindIt(BPLabel link) { this.TB_Text.Text = link.Content.ToString().Replace("\n", "@"); Glo.BindComboBoxFontSize(this.DDL_FrontSize, link.FontSize); this.TB_Text.TextWrapping = TextWrapping.Wrap; this.Show(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { BPBtn btn = this.HisBtn; string keys = "@EnName=BP.Sys.FrmBtn@PKVal=" + btn.Name + "@FK_MapData=" + Glo.FK_MapData + "@Text=" + btn.Content.ToString() + "@DDL_AppType=" + (int)btn.HisBtnType + "@EventType=" + (int)btn.HisEventType + "@EventContext=" + this.TB_EventDoc.Text.Replace('@', '#') + "@MsgOK=" + this.TB_MsgOK.Text.Replace('@', '#') + "@MsgErr=" + this.TB_MsgErr.Text.Replace('@', '#'); FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.SaveEnAsync(keys); da.SaveEnCompleted += new EventHandler <FF.SaveEnCompletedEventArgs>(da_SaveEnCompleted); }
/// <summary> /// ensName /// </summary> /// <param name="ensName"></param> public void BindEns(string ensName) { this.AllowDrop = true; this.UIBindKey = ensName; this.HisLGType = LGType.FK; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RequestSFTableAsync(ensName); da.RequestSFTableCompleted += new EventHandler <FF.RequestSFTableCompletedEventArgs>(da_RequestSFTableCompleted); }
public void BindIt() { // string sql = "SELECT * FROM Sys_MapAttr WHERE FK_MapData='" + Glo.FK_MapData + "' AND UIVISIBLE=0 AND EditType=0"; string sql = "SELECT * FROM Sys_MapAttr WHERE FK_MapData='" + Glo.FK_MapData + "' AND UIVISIBLE=0 AND EditType=0"; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); }
protected override void OnOpened() { string sql = "SELECT NodeID,Name,Step FROM WF_Node WHERE FK_Flow='" + Glo.FK_Flow + "'"; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); base.OnOpened(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("导入会清除当前的设计内容,您确定要执行吗?", "警告", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { return; } bool isClear = (bool)this.CB_IsClear.IsChecked; bool IsSetReadonly = (bool)this.CB_IsSetReadonly.IsChecked; switch (this.tabControl1.SelectedIndex) { case 0: break; case 1: // 从本机上装文件。 if (buffer == null || buffer.Length <= 0 || file == null) { MessageBox.Show("请选择模板文件", "提示", MessageBoxButton.OK); return; } loadingWindow.Title = "正在装载文件模版请稍后..."; loadingWindow.Show(); FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.LoadFrmTempleteAsync(buffer, Glo.FK_MapData, true); da.LoadFrmTempleteCompleted += new EventHandler <FF.LoadFrmTempleteCompletedEventArgs>(da_LoadFrmTempleteCompleted); break; case 2: // 从节点表单. loadingWindow.Title = "正在装载节点表单请稍后..."; loadingWindow.Show(); ListBoxItem lb = this.listBox1.SelectedItem as ListBoxItem; CCFormSoapClient fda = Glo.GetCCFormSoapClientServiceInstance(); fda.CopyFrmAsync(lb.Tag.ToString(), Glo.FK_MapData, isClear, IsSetReadonly); fda.CopyFrmCompleted += new EventHandler <CopyFrmCompletedEventArgs>(da_CopyFrmCompleted); break; case 3: // 从流程表单. loadingWindow.Title = "正在装载流程表单请稍后..."; loadingWindow.Show(); ListBoxItem lb44 = this.listBox_FrmLab.SelectedItem as ListBoxItem; if (lb44 == null) { return; } CCFormSoapClient fdaa = Glo.GetCCFormSoapClientServiceInstance(); fdaa.CopyFrmAsync(lb44.Tag.ToString(), Glo.FK_MapData, isClear, true); fdaa.CopyFrmCompleted += new EventHandler <CopyFrmCompletedEventArgs>(da_CopyFrmCompleted); break; default: break; } }
private void OKButton_Click(object sender, RoutedEventArgs e) { Glo.HisMapData.FrmH = double.Parse(this.TB_FrmH.Text); Glo.HisMapData.FrmW = double.Parse(this.TB_FrmW.Text); Glo.HisMapData.Name = this.TB_Name.Text; FF.CCFormSoapClient fa = Glo.GetCCFormSoapClientServiceInstance(); fa.RunSQLsAsync("UPDATE Sys_MapData SET NAME='" + this.TB_Name.Text + "', FrmW=" + Glo.HisMapData.FrmW + ", FrmH=" + Glo.HisMapData.FrmH + " WHERE No='" + Glo.FK_Flow + "'"); fa.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(fa_RunSQLsCompleted); }
protected override void OnOpened() { FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync("SELECT Name,Designer,DesignerUnit,DesignerContext FROM Sys_MapData WHERE No='" + Glo.FK_MapData + "'"); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); da.FtpMethodAsync("GetDirs", "/Form.表单模版/", null, null); da.FtpMethodCompleted += new EventHandler <FF.FtpMethodCompletedEventArgs>(da_FtpMethodCompleted); base.OnOpened(); }
private void TB_EleName_LostFocus(object sender, RoutedEventArgs e) { if (this.TB_EleID.IsEnabled == false) { return; } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.ParseStringToPinyinAsync(this.TB_EleName.Text.Trim()); da.ParseStringToPinyinCompleted += new EventHandler <FF.ParseStringToPinyinCompletedEventArgs>(da_ParseStringToPinyinCompleted); }
private void OKButton_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.TB_Name.Text) || string.IsNullOrEmpty(this.TB_No.Text)) { MessageBox.Show("您需要输入字段中英文名称", "Note", MessageBoxButton.OK); return; } #region 属性. string mypk = this.TB_No.Text.Trim(); string vals = "@EnName=BP.Sys.FrmAttachment@MyPK=" + Glo.FK_MapData + "_" + mypk + "@UploadType=1"; vals += "@FK_MapData=" + Glo.FK_MapData; vals += "@NoOfObj=" + this.TB_No.Text.Trim(); vals += "@Name=" + this.TB_Name.Text; vals += "@SaveTo=" + this.TB_SaveTo.Text.Trim(); vals += "@Sort=" + this.TB_Sort.Text.Trim(); vals += "@H=" + this.HisBPAttachment.Height; vals += "@W=" + this.HisBPAttachment.Width; vals += "@X=" + this.HisBPAttachment.X; vals += "@Y=" + this.HisBPAttachment.Y; if (this.CB_IsDelete.IsChecked == true) { vals += "@IsDelete=1"; } else { vals += "@IsDelete=0"; } if (this.CB_IsDownload.IsChecked == true) { vals += "@IsDownload=1"; } else { vals += "@IsDownload=0"; } if (this.CB_IsUpload.IsChecked == true) { vals += "@IsUpload=1"; } else { vals += "@IsUpload=0"; } #endregion 属性. FF.CCFormSoapClient daSaveFile = Glo.GetCCFormSoapClientServiceInstance(); daSaveFile.SaveEnAsync(vals); daSaveFile.SaveEnCompleted += new EventHandler <FF.SaveEnCompletedEventArgs>(daSaveFile_SaveEnCompleted); }
private void TB_Name_LostFocus(object sender, RoutedEventArgs e) { if (this.TB_No.IsEnabled == false) { return; } FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance(); ff.ParseStringToPinyinAsync(this.TB_Name.Text); ff.ParseStringToPinyinCompleted += new EventHandler <FF.ParseStringToPinyinCompletedEventArgs>(ff_ParseStringToPinyinCompleted); }
public void BindData() { this.listBox1.Items.Clear(); string sql = "SELECT No,Name,TableDesc,FK_Val FROM Sys_SFTable"; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); // this.listBox1.SelectionChanged += new SelectionChangedEventHandler(listBox1_SelectionChanged); }
/// <summary> /// 删除它 /// </summary> public void DeleteIt() { if (MessageBox.Show("您确定要删除[" + this.Name + "]吗?如果确定它相关的字段与设置也将会被删除,以前产生的历史数据也会被删除。", "删除提示", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { return; } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.DoTypeAsync("DelM2M", this.Name, null, null, null, null, null); da.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(da_DoTypeCompleted); }
private void RB_Checked(object sender, RoutedEventArgs e) { // 获取id. RadioButton rb = sender as RadioButton; string id = rb.Name.Replace("RB_", ""); FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); string sql = "SELECT * FROM Sys_FrmEvent WHERE FK_MapData='" + Glo.FK_MapData + "' AND FK_Event='" + id + "'"; da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); }
private void Btn_Del_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("are you sure?", "Note", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { return; } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.DoTypeAsync("DelEnum", this.TB_No.Text.Trim(), null, null, null, null); da.DoTypeCompleted += new EventHandler <DoTypeCompletedEventArgs>(da_DoTypeCompleted); }
protected override void OnOpened() { this.listBox1.Items.Clear(); // string sqls = "SELECT * FROM Sys_MapData WHERE FK_FrmSort!=''"; string sqls = "SELECT * FROM Sys_MapData "; sqls += "@SELECT * FROM WF_FrmNode WHERE FK_Node=" + this.FK_Node; FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableSAsync(sqls); da.RunSQLReturnTableSCompleted += new EventHandler <FF.RunSQLReturnTableSCompletedEventArgs>(da_RunSQLReturnTableSCompleted); base.OnOpened(); }
void ff_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e) { loading.DialogResult = false; if (e.Result != null) { MessageBox.Show(e.Result, "执行失败", MessageBoxButton.OK); return; } //Glo.WinOpen(Glo.BPMHost + "/WF/MapDef/Handler.ashx?DoType=DownTempFrm&FK_MapData=" + Glo.FK_MapData); Glo.WinOpen(Glo.BPMHost + "/WF/Admin/XAP/DoPort.aspx?DoType=DownFormTemplete&FK_MapData=" + Glo.FK_MapData, 100, 100); this.DialogResult = true; }
/// <summary> /// 删除它 /// </summary> public void DeleteIt() { if (MessageBox.Show("您确定要删除[" + this.Name + "]吗?如果确定以前产生的历史数据也会被删除。", "删除提示", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) { return; } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLsAsync("DELETE FROM Sys_FrmAttachment WHERE NoOfObj='" + this.Name + "' AND FK_MapData='" + Glo.FK_MapData + "'"); da.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(da_RunSQLsCompleted); }
public void BindSQL(string sql) { try { FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLReturnTableAsync(sql); da.RunSQLReturnTableCompleted += new EventHandler <FF.RunSQLReturnTableCompletedEventArgs>(da_RunSQLReturnTableCompleted); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void DeleteIt() { if (this.Name != null) { FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); string sqls = "DELETE FROM Sys_MapAttr WHERE FK_MapData='" + Glo.FK_MapData + "' AND KeyOfEn='" + this.Name + "'"; da.RunSQLsAsync(sqls); } Canvas c = this.Parent as Canvas; c.Children.Remove(this); IsDelete = true; }
protected override void OnOpened() { this.canvas1.Children.Clear(); this.OKButton.Visibility = System.Windows.Visibility.Collapsed; /*连接网络*/ FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.FtpMethodAsync("GetDirs", "/Form.表单模版/", null, null); da.FtpMethodCompleted += new EventHandler <FtpMethodCompletedEventArgs>(da_FtpMethodCompleted); this.loadingWindow.Title = "正在获取目录列表请稍候...."; this.loadingWindow.Show(); base.OnOpened(); }
void da_New_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e) { if (e.Result != null) { MessageBox.Show(e.Result, "提示", MessageBoxButton.OK); return; } this.LoadDtl(); string url = Glo.BPMHost + "/WF/MapDef/MapDefDtlFreeFrm.aspx?DoType=Edit&FK_MapData=" + Glo.FK_MapData + "&FK_MapDtl=" + this.Name + Glo.TimeKey; Glo.WinOpen(url, 700, 1100); // HtmlPage.Window.Eval("window.open('" + url + "','_blank')"); }
private void TB_Name_LostFocus(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.TB_No.Text) == false) { return; } if (this.TB_Name.Text.Trim().Length == 0) { return; } FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance(); ff.ParseStringToPinyinAsync(this.TB_Name.Text.Trim()); ff.ParseStringToPinyinCompleted += new EventHandler <ParseStringToPinyinCompletedEventArgs>(ff_ParseStringToPinyinCompleted); }
private void OKButton_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.TB_KeyOfEn.Text) || string.IsNullOrEmpty(this.TB_KeyOfName.Text)) { MessageBox.Show("您需要输入字段中英文名称", "Note", MessageBoxButton.OK); return; } //直接保存到数据库里. CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.SaveFKFieldAsync(Glo.FK_MapData, this.TB_KeyOfEn.Text, this.TB_KeyOfName.Text, this.SelectEnName, Glo.X, Glo.Y); da.SaveFKFieldCompleted += new EventHandler <SaveFKFieldCompletedEventArgs>(da_SaveFKFieldCompleted); }
private void OKButton_Click(object sender, RoutedEventArgs e) { string sqls = "@DELETE WF_FrmNode WHERE FK_Node='" + this.FK_Node + "'"; foreach (CheckBox cb in this.listBox1.Items) { if (cb.IsChecked == true) { sqls += "@INSERT INTO WF_FrmNode (MyPK,FK_Flow,FK_Node,FK_Frm)VALUES('" + cb.Name + "_" + this.FK_Node + "','" + Glo.FK_Flow + "','" + this.FK_Node + "','" + cb.Name + "')"; continue; } } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLsAsync(sqls); da.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(da_RunSQLsCompleted); }