public FieldChangeLogPage(UnicontaBaseEntity rec, CrudAPI api) : base(api, string.Empty)
 {
     InitializeComponent();
     localMenu.dataGrid = dgFieldChangeLog;
     SetRibbonControl(localMenu, dgFieldChangeLog);
     dgFieldChangeLog.api = api;
     filterDate           = BasePage.GetSystemDefaultDate().AddMonths(-3);
     dgFieldChangeLog.UpdateMaster(rec);
     dgFieldChangeLog.BusyIndicator = busyIndicator;
     localMenu.OnItemClicked       += gridRibbon_BaseActions;
     if (rec is IdKey)
     {
         api.LoadCacheInBackground(rec.BaseEntityType());
     }
 }
예제 #2
0
        async private void GenerateClassCode(UnicontaBaseEntity master, bool isBaseClass)
        {
            string className = string.Empty;

            if (isBaseClass)
            {
                className = master.BaseEntityType().Name;
            }
            else
            {
                className = master.GetType().Name;
            }

            var userFields = await api.Query <TableFieldsClient>(master);

            var classCode = ClassGenerator.Create(className, userFields, isBaseClass);

            var cwGenerateClass = new CWGenerateClass(classCode);

            cwGenerateClass.Show();
        }