コード例 #1
0
        private void DoBind()
        {
            List <SubLimitOfLiabilityMaster> limits = null;

            limits = SubLimitOfLiabilityManager.GetAll(clientID);

            gvSublimit.DataSource = limits;
            gvSublimit.DataBind();
        }
コード例 #2
0
        private void copySubLimitOfLiability(int sourceClientID, int targetClientID)
        {
            List <SubLimitOfLiabilityMaster> sublimits = null;

            sublimits = SubLimitOfLiabilityManager.GetAll(sourceClientID);
            foreach (SubLimitOfLiabilityMaster sublimit in sublimits)
            {
                SubLimitOfLiabilityMaster newSublimit = new SubLimitOfLiabilityMaster();
                newSublimit.ClientId    = targetClientID;
                newSublimit.Description = sublimit.Description;
                newSublimit.IsActive    = sublimit.IsActive;
                SubLimitOfLiabilityManager.Save(sublimit);
            }
        }