Beispiel #1
0
 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);
 }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            string pk = this.TB_No.Text;
            if (pk == "系统自动编号...")
                pk = "";
            int frmType = this.DDL_FrmType.SelectedIndex;
            if (frmType == 0 || frmType == 1)
            {
                if (this.TB_PTable.Text.Trim().Length == 0)
                {
                    MessageBox.Show("您需要输入物理表名");
                    return;
                }
            }
            else
            {
                if (this.TB_URL.Text.Trim().Length == 0)
                {
                    MessageBox.Show("您需要输入 URL ");
                    return;
                }
            }

            string strs = "@EnName=BP.WF.Frm@PKVal=" + pk + "@Name=" + this.TB_Name.Text;
            strs += "@PTable=" + this.TB_PTable.Text + "@FrmType=" + frmType;
            strs += "@FK_Flow=" + Glo.FK_Flow;
            strs += "@URL=" + this.TB_URL.Text;
            strs += "@No=" + this.TB_No.Text;
            strs += "@DBURL=" + this.DDL_DBUrl.SelectedIndex;

            string isReadonly = "0";
            if (this.CB_IsReadonly.IsChecked == true)
                isReadonly = "1";

            string isPrint = "0";
            if (this.CB_IsPrint.IsChecked == true)
                isPrint = "1";

            //FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
            //da.SaveEnAsync(strs);
            //da.SaveEnCompleted += new EventHandler<FF.SaveEnCompletedEventArgs>(da_SaveEnCompleted);

            FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
            da.DoTypeAsync("SaveFlowFrm", strs, this.NodeID.ToString(), Glo.FK_Flow,
             isReadonly, isPrint);
            da.DoTypeCompleted += new EventHandler<FF.DoTypeCompletedEventArgs>(da_DoTypeCompleted);
        }
        private void Btn_Del_Click(object sender, RoutedEventArgs e)
        {
            if (this.listBox1.SelectedIndex == -1)
            {
                MessageBox.Show("请选择要删除的项目。");
                return;
            }

            if (MessageBox.Show("您确定要删除吗?", "删除确认", MessageBoxButton.OKCancel)
                == MessageBoxResult.Cancel)
            {
                return;
            }

            ListBoxItem item = this.listBox1.SelectedItem as ListBoxItem;

            string[] kv = item.Content.ToString().Split(':');

            FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance();
            ff.DoTypeAsync("DelSFTable", kv[0], null, null, null, null, null);
            ff.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(ff_DoTypeCompleted);
        }
Beispiel #6
0
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance();
     ff.DoTypeAsync("NewM2M", Glo.FK_MapData, this.TB_No.Text, this.IsM2M.ToString(), this.IsM2M.ToString(), this.X.ToString(), this.Y.ToString());
     ff.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(ff_DoTypeCompleted);
 }
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance();
     ff.DoTypeAsync("SaveSFTable", this.TB_CHName.Text, this.TB_EnName.Text, null, null, null);
     ff.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(ff_DoTypeCompleted);
 }
Beispiel #8
0
 public void NewM2M(double x, double y)
 {
     FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
     da.DoTypeAsync("NewM2M", Glo.FK_MapData, this.Name, x.ToString(), y.ToString(), null);
     da.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(da_New_DoTypeCompleted);
 }
Beispiel #9
0
 public void NewDtl()
 {
     FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
     da.DoTypeAsync("NewDtl", this.Name, Glo.FK_MapData, null, null, null);
     da.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(da_New_DoTypeCompleted);
 }
Beispiel #10
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(this.TB_KeyOfEn.Text) ||
                string.IsNullOrEmpty(this.TB_Name.Text))
            {
                MessageBox.Show("您需要输入字段中英文名称", "Note", MessageBoxButton.OK);
                return;
            }

            if (this.CB_IsHid.IsChecked == true)
            {
                if (MessageBox.Show("隐藏字段只能在工具箱的隐藏区域才能找到。",
                                    "您确定吗?", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel)
                {
                    return;
                }

                string dtype = "0";
                if (this.RB_Boolen.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppBoolean;
                }

                if (this.RB_Data.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppDate;
                }

                if (this.RB_DataTime.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppDateTime;
                }

                if (this.RB_Float.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppFloat;
                }

                if (this.RB_Int.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppInt;
                }

                if (this.RB_Money.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppMoney;
                }

                if (this.RB_String.IsChecked == true)
                {
                    dtype = BP.En.DataType.AppString;
                }

                FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
                da.DoTypeAsync("NewHidF", Glo.FK_MapData, this.TB_KeyOfEn.Text, this.TB_Name.Text, dtype, null);
                da.DoTypeCompleted += new EventHandler <FF.DoTypeCompletedEventArgs>(da_DoTypeCompleted);
            }
            else
            {
                this.DialogResult = true;
            }
        }