Пример #1
0
        public long m_mthAddInvoiceAuditingInfo(clsInvAuditing_VO objResult)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.HIS.clsInvoiceManageSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsInvoiceManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsInvoiceManageSvc));
            lngRes = objSvc.m_mthAddInvoiceAuditingInfo(objPrincipal, objResult);
            objSvc.Dispose();
            return(lngRes);
        }
Пример #2
0
        private void btOK_Click(object sender, System.EventArgs e)
        {
            if (this.txtID.Tag == null)
            {
                MessageBox.Show("请输入工号");
                this.txtID.Focus();
                return;
            }
            if (this.txtPS.Tag.ToString().Trim() != this.txtPS.Text.Trim())
            {
                MessageBox.Show("密码错误");
                this.txtPS.Focus();
                return;
            }
            //用于PACS,验证成功,返回
            if (m_blnUseByPacs)
            {
                this.DialogResult = DialogResult.OK;
                return;
            }
            //end
            //用于退票验证
            if (m_blnUseByInvoReturn)
            {
                if (!string.IsNullOrEmpty(m_strInvoCreatorID))
                {
                    if (m_strInvoCreatorID.Trim().CompareTo(this.txtID.Tag.ToString()) != 0)
                    {
                        switch (m_strLimitLevel)
                        {
                        case "0":
                            break;

                        case "1":
                            if (MessageBox.Show("发票不属于当前输入员工所开,是否确认审核?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2) != DialogResult.Yes)
                            {
                                return;
                            }
                            break;

                        case "2":
                            MessageBox.Show("发票不属于当前输入员工所开,不能审核当前发票", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            return;

                        //break;
                        default:
                            break;
                        }
                    }
                }
            }
            //end
            if (MessageBox.Show("确认审核?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
            {
                return;
            }
            clsInvAuditing_VO objVO = new clsInvAuditing_VO();

            objVO.strCF_DAT      = DateTime.Now.ToString();
            objVO.strCFEMPID_CHR = this.txtID.Tag.ToString();
            objVO.strSEQID_CHR   = _strInv;
            objVO.strSTATUS_INT  = _strStatues;
            long ret = m_objManage.m_mthAddInvoiceAuditingInfo(objVO);

            if (ret > 0)
            {
                MessageBox.Show("保存成功");
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show("保存失败");
            }
        }