Exemplo n.º 1
0
        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;
        }
 void ff_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
 {
     if (e.Result == null)
     {
         this.DialogResult = true;
         return;
     }
     MessageBox.Show(e.Result);
 }
Exemplo n.º 3
0
 void ff_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         MessageBox.Show(e.Result);
         return;
     }
     MessageBox.Show("删除成功");
     this.BindData();
 }
Exemplo n.º 4
0
        void ff_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                MessageBox.Show(e.Result, "提示", MessageBoxButton.OK);
                return;
            }

            Glo.TempVal       = this.TB_No.Text;
            this.DialogResult = true;
        }
        void fc_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                MessageBox.Show(e.Result);
                return;
            }

            this.TB_EnName.IsEnabled = false;
            this.OKButton.Content    = "保存";
        }
Exemplo n.º 6
0
        void da_New_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                MessageBox.Show(e.Result, "新建错误", MessageBoxButton.OK);
                return;
            }

            string url = Glo.BPMHost + "/WF/MapDef/MapM2M.aspx?DoType=Edit&FK_MapData=" + Glo.FK_MapData + "&FK_MapM2M=" + this.Name + Glo.TimeKey;

            HtmlPage.Window.Eval("window.showModalDialog('" + url + "',window,'dialogHeight:450px;dialogWidth:500px;center:Yes;help:No;scroll:auto;resizable:1;status:No;');");
        }
Exemplo n.º 7
0
 void da_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
 {
     if (e.Result == null)
     {
         MessageBox.Show("执行成功.", "提示", MessageBoxButton.OK);
         this.DialogResult = false;
     }
     else
     {
         MessageBox.Show(e.Result, "执行错误", MessageBoxButton.OK);
     }
 }
Exemplo n.º 8
0
 //void da_SaveEnCompleted(object sender, FF.SaveEnCompletedEventArgs e)
 //{
 //    if (e.Result == null)
 //    {
 //        this.TB_No.Text = e.Result;
 //        this.DialogResult = true;
 //        return;
 //    }
 //    MessageBox.Show(e.Result);
 //}
 void da_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
 {
     if (e.Result.Contains("Error:"))
     {
         MessageBox.Show(e.Result, "Save Error", MessageBoxButton.OK);
     }
     else
     {
         this.TB_No.Text = e.Result;
         this.DialogResult = true;
     }
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
        void da_DoTypeCompleted(object sender, FF.DoTypeCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                MessageBox.Show(e.Result, "删除错误", MessageBoxButton.OK);
                return;
            }

            Canvas c = this.Parent as Canvas;

            if (c != null)
            {
                c.Children.Remove(this);
            }
        }
Exemplo n.º 11
0
        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')");
        }