public void UpdatePCCFTest()
 {
     StaticDataBusiness target = new StaticDataBusiness(); // TODO: Initialize to an appropriate value
     SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value
     MA_PCCF pccf = null; // TODO: Initialize to an appropriate value
     target.UpdatePCCF(sessioninfo, pccf);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Example #2
0
        public static object Update(SessionInfo sessioninfo, MA_PCCF record)
        {
            try
            {
                StaticDataBusiness _staticBusiness = new StaticDataBusiness();

                //record.FLAG_MULTIPLY = record.FLAG_MULTIPLY == null || !record.FLAG_MULTIPLY.Value ? false : true;
                record.LABEL = record.LABEL.ToUpper();
                record.LOG.MODIFYBYUSERID = sessioninfo.CurrentUserId;
                record.LOG.MODIFYDATE = DateTime.Now;
                _staticBusiness.UpdatePCCF(sessioninfo, record);

                return new { Result = "OK", Record = record };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }