Ejemplo n.º 1
0
        private void bt_save_yyfx_Click(object sender, EventArgs e)
        {
            bool flag = false;

            RequestID = DocumentHelperClient.GetRequestChangeID(new Guid(invalidReportID));
            if (chkSGRequest.Checked && RequestID == Guid.Empty && string.IsNullOrEmpty(tb_yyfx.Text.Trim()))
            {
                MessageBox.Show("原因分析不能为空!");
                return;
            }
            if (tb_yyfx.Text.Trim() == "")
            {
                if (MessageBox.Show("当前内容为空,您确定保存吗?", "保存确定对话框", MessageBoxButtons.OKCancel)
                    == DialogResult.OK)
                {
                    flag = true;
                }
                else
                {
                    return;
                }
            }
            else
            {
                flag = true;
            }
            if (flag)
            {
                DepositoryEvaluateDataList.SaveInvalidReportNote(invalidReportID, tb_yyfx.Text.Trim(), 0);
                if (RequestID == Guid.Empty && chkSGRequest.Checked == true)
                {
                    Sys_RequestChange Info = new Sys_RequestChange();

                    Info.DocumentID = new Guid(invalidReportID);
                    Info.Caption    = "";// TextBox_Content.Text;
                    Info.Reason     = tb_yyfx.Text;

                    Boolean Result = DocumentHelperClient.NewRequestChange(Info);
                }
                MessageBox.Show("保存成功");
                //this.Close();
            }
        }
Ejemplo n.º 2
0
 public static Boolean NewRequestChange(Sys_RequestChange request)
 {
     return(Convert.ToBoolean(Agent.CallService("Yqun.BO.BusinessManager.dll", "NewRequestChange", new object[] { request })));
 }