コード例 #1
0
 void client_DelChargeApplyMasterAndDetailCompleted(object sender, DelChargeApplyMasterAndDetailCompletedEventArgs e)
 {
     if (e.Result == true)
     {
         GetData();
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", ""));
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("DELETEFAILED", ""));
     }
 }
コード例 #2
0
ファイル: ChargeApplyForm.xaml.cs プロジェクト: JuRogn/OA
        //string TempStr = string.Empty;//存放3行内信息
        //private void txtPayInfo_TextChanged(object sender, TextChangedEventArgs e)
        //{
        //    string TempText = string.Empty;
        //    string text = this.txtPayInfo.Text;
        //    string[] arrary = text.Split('\r');
        //    var tempArray = arrary.Reverse().ToList();
        //    int count = tempArray.Count();
        //    if (count <= 3)
        //    {
        //        TempStr = text;
        //    }
        //    else
        //    {
        //        this.txtPayInfo.Text = TempStr;//超过3行数据则赋值为保存的3行内数据
        //    }
        //}

        //private void rbOther_Click(object sender, RoutedEventArgs e)
        //{
        //    if (this.rbOther.IsChecked.Value)
        //    {
        //        this.wtOther.Visibility = Visibility.Visible;
        //    }
        //    else
        //    {
        //        this.wtOther.Visibility = Visibility.Collapsed;
        //    }
        //}

        //private void cbSelf_Click(object sender, RoutedEventArgs e)
        //{
        //    if (this.cbSelf.IsChecked.Value)
        //    {
        //        this.wtSelf.Visibility = Visibility.Visible;
        //    }
        //    else
        //    {
        //        this.wtSelf.Visibility = Visibility.Collapsed;
        //    }
        //}

        #region 删除
        void client_DelChargeApplyMasterAndDetailCompleted(object sender, DelChargeApplyMasterAndDetailCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Result == true)
            {
                //GetData();
                //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", ""));
                // 删除成功
                if (Deleted != null)
                {
                    Deleted(this, null);
                }
                else
                {
                    try
                    {
                        HtmlPage.Window.Invoke("SLCloseCurrentPage");
                    }
                    catch (Exception ex)
                    {

                    }
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("DELETEFAILED", ""));
            }
        }
コード例 #3
0
 void client_DelChargeApplyMasterAndDetailCompleted(object sender, DelChargeApplyMasterAndDetailCompletedEventArgs e)
 {
     if (e.Result == true)
     {
         GetData();
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", ""));
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("DELETEFAILED", ""));
     }
 }