Exemplo n.º 1
0
        public void m_SaveFee()
        {
            long lngRes = 0;

            if (m_chkVaild())
            {
                return;
            }
            clsPatRegFee_VO clsVO;

            this.m_SaveToVO(out clsVO);
            lngRes = clsDomain.m_lngSavePatRegFee(clsVO, this.IsNew);
            if (lngRes > 0)
            {
                clsMain.Tips("保存成功!");
                if (IsNew)
                {
                    int row = objfrm.Grid.Rows;
//					object[] newRow=new object[]{clsVO.m_strRegisterTypeID,
//													clsVO.m_strPayTypeID,
//													objfrm.ctlRegType.SelectItemText,
//						                            objfrm.ctlPatType.SelectItemText,
//													Convert.ToDouble(clsVO.m_decRegFee),Convert.ToDouble(clsVO.m_decDiagFee)};
                    objfrm.Grid.DataSource.Rows.Add(new object[6]);
                    NoTouch = true;
                    objfrm.Grid.Set_TextMatrix(row, 0, clsVO.m_strRegisterTypeID);
                    objfrm.Grid.Set_TextMatrix(row, 1, clsVO.m_strPayTypeID);
                    objfrm.Grid.Set_TextMatrix(row, 2, objfrm.ctlRegType.SelectItemText);
                    objfrm.Grid.Set_TextMatrix(row, 3, objfrm.ctlPatType.SelectItemText);
                    objfrm.Grid.Set_TextMatrix(row, 4, clsVO.m_decRegFee.ToString());
                    objfrm.Grid.Set_TextMatrix(row, 5, clsVO.m_decDiagFee.ToString());
                    IsNew   = false;
                    NoTouch = false;
                }
                else
                {
                    int row = objfrm.Grid.Row;
                    NoTouch = true;
                    objfrm.Grid.Set_TextMatrix(row, 4, clsVO.m_decRegFee.ToString());
                    objfrm.Grid.Set_TextMatrix(row, 5, clsVO.m_decDiagFee.ToString());
                    NoTouch = false;
                }
            }
            else
            {
                clsMain.Tips("保存失败!");
            }
        }