Beispiel #1
0
        public static int UpdateInformation(A2ZCHQBOOKDTO dto)
        {
            int    rowEffect = 0;
            string strQuery  = "UPDATE A2ZCHQBOOK set ChqPStat='" + dto.ChqPStatus + "' where BranchNo='" + dto.BranchNo + "' and AccType='" + dto.AccType + "' and AccNo='" + dto.AccNo + "'";

            rowEffect = Converter.GetInteger(BLL.CommonManager.Instance.ExecuteNonQuery(strQuery, "A2ZCSCUBS"));
            if (rowEffect == 0)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }
Beispiel #2
0
        public static int InsertInformation(A2ZCHQBOOKDTO dto)
        {
            int    rowEffect = 0;
            string strQuery  = @"INSERT into A2ZCHQBOOK(BranchNo,MemType,MemNo,AccType,AccNo,ChqeFx,ChqSlNo,ChqbPage,ChqPStat,ChqPDt,ChqBStat,ChqBStatDt,ChqBIssDt)values('" + dto.BranchNo + "','" + dto.MemType + "','" + dto.MemberNo + "','" + dto.AccType + "','" + dto.AccNo + "','" + dto.ChqPrefix + "','" + dto.ChqSerialNo + "','" + dto.ChqPage + "','" + dto.ChqPStatus + "','" + dto.ChqPDate + "','" + dto.ChqBStatus + "','" + dto.ChqBStatusDate + "','" + dto.ChqBIssueDate + "')";

            rowEffect = Converter.GetInteger(BLL.CommonManager.Instance.ExecuteNonQuery(strQuery, "A2ZCSCUBS"));

            if (rowEffect == 0)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }