Beispiel #1
0
        /// <summary>
        /// 审核不通过反馈给设计员
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void disbtn_Click(object sender, EventArgs e)
        {
            DialogResult result;

            result = MessageBox.Show("确定要反馈吗?", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            if (result == DialogResult.OK)
            {
                Add_Remark remarkform = new Add_Remark();
                remarkform.ShowDialog();
                if (remarkform.DialogResult == DialogResult.OK)
                {
                    string marktext = remarkform.GetRemark();
                    string sqlstr   = "UPDATE PIPEAPPROVE_TAB SET APPROVENEEDFLAG = 'N', STATE = 1 WHERE PROJECTID = '" + this.PIDcomboBox.SelectedItem + "' AND DRAWINGNO = '" + this.DRAWINGNOcomboBox.SelectedItem + "'";
                    User.UpdateCon(sqlstr, DataAccess.OIDSConnStr);
                    DBConnection.UpdateSpoolTabWithDrawingNoRemark((int)FlowState.审核反馈, marktext, this.PIDcomboBox.SelectedItem.ToString(), this.DRAWINGNOcomboBox.SelectedItem.ToString());
                    DBConnection.InsertApproveFeedBackFlowLog(User.cur_user, (int)FlowState.审核反馈, marktext, this.PIDcomboBox.SelectedItem.ToString(), this.DRAWINGNOcomboBox.SelectedItem.ToString());
                    ClearControls();
                }
            }
            else
            {
                return;
            }
        }
Beispiel #2
0
 /// <summary>
 /// ��˲�ͨ�����������Ա
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void disbtn_Click(object sender, EventArgs e)
 {
     DialogResult result;
     result = MessageBox.Show("ȷ��Ҫ������", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     if (result == DialogResult.OK)
     {
         Add_Remark remarkform = new Add_Remark();
         remarkform.ShowDialog();
         if (remarkform.DialogResult == DialogResult.OK)
         {
             string marktext = remarkform.GetRemark();
             string sqlstr = "UPDATE PIPEAPPROVE_TAB SET APPROVENEEDFLAG = 'N', STATE = 1 WHERE PROJECTID = '" + this.PIDcomboBox.SelectedItem + "' AND DRAWINGNO = '" + this.DRAWINGNOcomboBox.SelectedItem + "'";
             User.UpdateCon(sqlstr, DataAccess.OIDSConnStr);
             DBConnection.UpdateSpoolTabWithDrawingNoRemark((int)FlowState.��˷���, marktext, this.PIDcomboBox.SelectedItem.ToString(), this.DRAWINGNOcomboBox.SelectedItem.ToString());
             DBConnection.InsertApproveFeedBackFlowLog(User.cur_user, (int)FlowState.��˷���, marktext, this.PIDcomboBox.SelectedItem.ToString(), this.DRAWINGNOcomboBox.SelectedItem.ToString());
             ClearControls();
         }
     }
     else
     {
         return;
     }
 }