Ejemplo n.º 1
0
        private void Btn_Submit_Click(object sender, EventArgs e)
        {
            Btn_Submit.Enabled = false;

            string Matter = string.Format("【故障报修】-审批意见:{0};费用明细:{1}", UserOpinion.Text.Trim(), ApproveDispose.GetFeeItem(this.FP_Fee));

            int count = sysidal.UpdateApprove_defalut("Meter_Maintain", ResolveID, IsPass.Checked, UserOpinion.Text.Trim(), PointSort, TaskID, Matter);

            if (count > 0)
            {
                if (IsCharge)
                {
                    MessageBox.Show("审批成功!");
                    ApproveDispose.UpdateFeeItem(this.FP_Fee, ResolveID);
                }
                else
                {
                    MessageBox.Show("审批成功!");
                }
            }
            else
            {
                Btn_Submit.Enabled = true;
            }
        }
        private void Btn_Submit_Click(object sender, EventArgs e)
        {
            Hashtable ht = new Hashtable();

            ht = new SqlServerHelper().GetHashTableByControl(this.panel2.Controls);
            new SqlServerHelper().Submit_AddOrEdit("Meter_Install_Single", "TaskID", TaskID, ht);

            Btn_Submit.Enabled = false;


            string Matter = string.Format("【技术说明】-水表数量:{0};水表型号:{1};水表位置:{2};技术说明:{3};费用明细:{4}", MeterCount.Text, waterMeterSizeMemo.Text, waterMeterPositionMemo.Text, UserOpinion.Text, ApproveDispose.GetFeeItem(this.FP_Fee));

            ComputerName = AppDomain.CurrentDomain.GetData("COMPUTERNAME").ToString();
            ip           = AppDomain.CurrentDomain.GetData("IP").ToString();

            int count = sysidal.UpdateApprove_Single_defalut(ResolveID, IsPass.Checked, UserOpinion.Text.Trim(), ip, ComputerName, PointSort, TaskID, Matter);

            if (count > 0)
            {
                if (IsCharge)
                {
                    MessageBox.Show("审批成功!");
                    ApproveDispose.UpdateFeeItem(this.FP_Fee, ResolveID);
                }
                else
                {
                    MessageBox.Show("审批成功!");
                }
            }
            else
            {
                Btn_Submit.Enabled = true;
            }
        }
        private void Btn_Submit_Click(object sender, EventArgs e)
        {
            Btn_Submit.Enabled = false;

            ip           = AppDomain.CurrentDomain.GetData("IP").ToString();
            ComputerName = AppDomain.CurrentDomain.GetData("COMPUTERNAME").ToString();
            string Matter = string.Format("【用户换表】-审批意见:{0};费用明细:{1}", UserOpinion.Text.Trim(), ApproveDispose.GetFeeItem(this.FP_Fee));

            int count = sysidal.UpdateApprove_defalut("Meter_Change", ResolveID, IsPass.Checked, UserOpinion.Text.Trim(), ip, ComputerName, PointSort, TaskID, Matter);

            if (count > 0)
            {
                if (IsCharge)
                {
                    MessageBox.Show("审批成功!");
                    ApproveDispose.UpdateFeeItem(this.FP_Fee, ResolveID);
                }
                else
                {
                    MessageBox.Show("审批成功!");
                }
            }
            else
            {
                Btn_Submit.Enabled = true;
            }
        }
Ejemplo n.º 4
0
        private void Btn_Submit_Click(object sender, EventArgs e)
        {
            Btn_Submit.Enabled = false;
            int count = sysidal.UpdateApprove_defalut("Meter_Install_Group", ResolveID, IsPass.Checked, UserOpinion.Text.Trim(), PointSort, TaskID, "");

            if (count > 0)
            {
                if (IsCharge)
                {
                    ApproveDispose.UpdateFeeItem(this.FP_Fee, ResolveID);
                    SaveGroupMeter();
                    MessageBox.Show("审批成功!");
                }
                else
                {
                    MessageBox.Show("审批成功!");
                }
            }
            else
            {
                Btn_Submit.Enabled = true;
            }
        }