示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            ComboBoxItem item    = (ComboBoxItem)this.DDL_EleType.SelectedItem;
            string       eleType = item.Tag.ToString();

            string mypk = Glo.FK_MapData + "_" + eleType + "_" + this.TB_EleID.Text.Trim();
            string strs = "@EnName=BP.Sys.FrmEle@PKVal=" + mypk;

            strs += "@EleType=" + eleType;
            strs += "@EleName=" + this.TB_EleName.Text.Trim();
            strs += "@EleID=" + this.TB_EleID.Text.Trim();
            strs += "@FK_MapData=" + Glo.FK_MapData;

            if (this.CB_IsReadonly.IsChecked == true)
            {
                strs += "@IsEnable=1";
            }
            else
            {
                strs += "@IsEnable=0";
            }

            strs += "@Tag1=" + this.TB_Tag1.Text.Trim();
            if (this.Lab_Tag2.Content.ToString() != "不需填写")
            {
                strs += "@Tag2=" + this.TB_Tag2.Text.Trim();
            }

            if (this.Lab_Tag3.Content.ToString() != "不需填写")
            {
                strs += "@Tag3=" + this.TB_Tag3.Text.Trim();
            }

            if (this.Lab_Tag4.Content.ToString() != "不需填写")
            {
                strs += "@Tag4=" + this.TB_Tag4.Text.Trim();
            }

            FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance();
            da.SaveEnAsync(strs);
            da.SaveEnCompleted += new EventHandler <FF.SaveEnCompletedEventArgs>(da_SaveEnCompleted);
        }
示例#4
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            string id = "";

            if ((bool)this.RB_FrmLoadAfter.IsChecked)
            {
                id = this.RB_FrmLoadAfter.Name;
            }

            if ((bool)this.RB_FrmLoadBefore.IsChecked)
            {
                id = this.RB_FrmLoadBefore.Name;
            }

            if ((bool)this.RB_SaveBefore.IsChecked)
            {
                id = this.RB_SaveBefore.Name;
            }

            if ((bool)this.RB_SaveAfter.IsChecked)
            {
                id = this.RB_SaveAfter.Name;
            }

            if (id == "")
            {
                MessageBox.Show("请选择事件类型。", "提示", MessageBoxButton.OK);
                return;
            }
            id = id.Replace("RB_", "");

            string info = "@EnName=BP.Sys.FrmEvent@MyPK=" + Glo.FK_MapData + "_" + id + "@FK_Event=" + id + "@FK_MapData=" + Glo.FK_MapData + "@DoType=" + this.DDL_EventType.SelectedIndex + "@DoDoc=" + this.TB_DoDoc.Text.Replace('@', '^') + "@MsgOK=" + this.TB_MsgOK.Text.Replace('@', '^') + "@MsgError=" + this.TB_MsgErr.Text.Replace('@', '^');

            FF.CCFormSoapClient daInfoSave = Glo.GetCCFormSoapClientServiceInstance();
            daInfoSave.SaveEnAsync(info);
            daInfoSave.SaveEnCompleted += new EventHandler <FF.SaveEnCompletedEventArgs>(daInfoSave_SaveEnCompleted);
        }