示例#1
0
        private bool CheckUse(MSTS03P001Model dto)
        {
            var parameters = CreateParameter();

            parameters.AddParameter("error_code", null, ParameterDirection.Output);
            parameters.AddParameter("COM_CODE ", dto.COM_CODE); //checked
            parameters.AddParameter("PRIORITY_NAME", dto.PRIORITY_NAME);
            parameters.AddParameter("ISSUE_TYPE", dto.ISSUE_TYPE);

            var result = _DBMangerNoEF.ExecuteDataSet("[bond].[SP_VSMS_PIT_DATA_003]", parameters, CommandType.StoredProcedure);

            bool isUse;

            if (!result.Status)
            {
                isUse = false;
            }
            else
            {
                if (result.OutputData["error_code"].ToString().Trim() != "0")
                {
                    isUse = false;
                }
                else
                {
                    isUse = true;
                }
            }
            return(isUse);
        }
示例#2
0
 public MSTS03P001DTO()
 {
     Model = new MSTS03P001Model();   // new โมเดล
 }