Exemplo n.º 1
0
        public bool Adddoc(FormViewParameter Parameter)
        {
            Guid DocumentTypeId = Guid.NewGuid();

            //string curUser = Thread.CurrentPrincipal.Identity.Name;
            IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow row = (IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow)Parameter.Values;
            IgrssAdapters.DocumentAdapter.Addnew(row.Name, row.Description);
            return(true);
        }
Exemplo n.º 2
0
        public bool UpdateDocumentMaster(FormViewParameter Parameter, Guid DocumentTypeId)
        {
            string curUser = Thread.CurrentPrincipal.Identity.Name;

            IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow row = (IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow)Parameter.Values;

            IgrssAdapters.DocumentAdapter.UpdateDocumentMaster(DocumentTypeId, row.Name, row.Description, curUser, DateTime.Now);

            return(true);
        }