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); }
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); }
/// <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 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; }
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); }
public void DeleteIt() { if (this.IsCanDel == false) { MessageBox.Show("该字段[" + this.Name + "]不可删除!", "提示", MessageBoxButton.OK); return; } 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); } IsDelete = true; Canvas c = this.Parent as Canvas; c.Children.Remove(this); }
/// <summary> /// 隐藏它 /// </summary> public void HidIt() { FF.CCFormSoapClient hidDA = Glo.GetCCFormSoapClientServiceInstance(); hidDA.RunSQLsAsync("UPDATE Sys_MapDtl SET IsView=0 WHERE No='" + Glo.FK_MapData + "'"); hidDA.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(hidDA_RunSQLsCompleted); }
public void HidIt() { FF.CCFormSoapClient hidDA = Glo.GetCCFormSoapClientServiceInstance(); hidDA.RunSQLsAsync("UPDATE Sys_MapAttr SET UIVisible=0 WHERE KeyOfEn='" + this.Name + "' AND FK_MapData='" + Glo.FK_MapData + "'"); hidDA.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(hidDA_RunSQLsCompleted); }
private void Btn_Click(object sender, RoutedEventArgs e) { string tKey = "&K=" + DateTime.Now.ToString("yyyyMMddHHmmss"); string url = ""; Button btn = sender as Button; if (btn.Name == "Btn_New") { MessageBox.Show("在您选择字段类型后,注意设置字段隐藏属性。", "提示", MessageBoxButton.OK); url = Glo.BPMHost + "/WF/MapDef/Do.aspx?DoType=AddF&MyPK=" + Glo.FK_MapData + tKey; HtmlPage.Window.Eval("window.showModalDialog('" + url + "',window,'dialogHeight:600px;dialogWidth:500px;center:Yes;help:No;scroll:auto;resizable:1;status:No;');"); this.DialogResult = false; return; } ListBoxItem li = this.listBox1.SelectedItem as ListBoxItem; if (li == null) { return; } string[] strs = li.Tag.ToString().Split('#'); string key = strs[0]; string fType = strs[1]; int lgType = int.Parse(strs[2]); // BP.DA.LGType myLGType = (LGType)lgType; switch (btn.Name) { case "Btn_Edit": switch (lgType) { case 0: url = Glo.BPMHost + "/WF/MapDef/EditF.aspx?DoType=Edit&MyPK=" + Glo.FK_MapData + "&RefNo=" + Glo.FK_MapData + "_" + key + "&FType=" + fType + tKey; break; case 1: url = Glo.BPMHost + "/WF/MapDef/EditEnum.aspx?DoType=Edit&MyPK=" + Glo.FK_MapData + "&RefNo=" + Glo.FK_MapData + "_" + key + "&FType=" + fType + tKey; break; case 2: url = Glo.BPMHost + "/WF/MapDef/EditTable.aspx?DoType=Edit&MyPK=" + Glo.FK_MapData + "&RefNo=" + Glo.FK_MapData + "_" + key + "&FType=" + fType + tKey; break; default: break; } break; case "Btn_Del": if (MessageBox.Show("您确定要执行删除吗?", "删除提示", MessageBoxButton.OK) == MessageBoxResult.OK) { FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.RunSQLsAsync("DELETE FROM Sys_MapAttr WHERE FK_MapData='" + Glo.FK_MapData + "' AND KeyOfEn='" + key + "'"); da.RunSQLsCompleted += new EventHandler <FF.RunSQLsCompletedEventArgs>(da_RunSQLsCompleted); return; } break; default: break; } HtmlPage.Window.Eval("window.showModalDialog('" + url + "',window,'dialogHeight:500px;dialogWidth:500px;center:Yes;help:No;scroll:auto;resizable:1;status:No;');"); this.DialogResult = true; }