Exemplo n.º 1
0
 protected void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     if (e.InstanceType == ChildListType.SubjectChildList.ToString())
     {
         e.Instance = new SubjectChildListDto();
     }
 }
Exemplo n.º 2
0
 protected void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     if (e.InstanceType == ChildListType.EntityItem.ToString())
     {
         e.Instance = new DEntityItemDto();
     }
 }
Exemplo n.º 3
0
 protected void ucListManager_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     if (InstanceRowNewing != null)
     {
         InstanceRowNewing(this, e);
     }
 }
 private void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     if (ChildListInstanceRowNewing != null)
     {
         ChildListInstanceRowNewing(this, e);
     }
 }
 protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
     {
     case InstanceTypes.TransactionItem:
         e.Instance = new TransactionItemDto();
         break;
     }
 }
Exemplo n.º 6
0
 protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
     {
     case InstanceTypes.Post:
         PostDto post = new PostDto();
         post.IssuedTime = DateTime.Now;
         e.Instance      = post;
         break;
     }
 }
        protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
        {
            switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
            {
            case InstanceTypes.DomainMainMenu:
                e.Instance = new DomainMainMenuDto();
                break;

            case InstanceTypes.DomainSetupMenu:
                e.Instance = new DomainSetupMenuDto();
                break;
            }
        }
        protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
        {
            switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
            {
            case InstanceTypes.Contact:
                e.Instance = new ContactDto();
                break;

            case InstanceTypes.ScheduleEvent:
                e.Instance = new ScheduleEventDto();
                break;

            case InstanceTypes.ShipTo:
                e.Instance = new ShipToDto();
                break;
            }
        }
Exemplo n.º 9
0
        protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;

            //Update new values
            OrderedDictionary newValues = new OrderedDictionary();

            //The GridTableView will fill the values from all editable columns in the hash
            e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

            InstanceRowNewingEventArgs arg = new InstanceRowNewingEventArgs(InstanceType);

            if (InstanceRowNewing != null)
            {
                InstanceRowNewing(this, arg);
            }

            if (arg.Instance != null)
            {
                SaveRow(arg.Instance, newValues);
            }
        }
Exemplo n.º 10
0
        protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
        {
            switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
            {
            case InstanceTypes.ContactContactMethod:
                e.Instance = new ContactContactMethodDto();
                break;

            case InstanceTypes.ScheduleEvent:
                ScheduleEventDto instance = new ScheduleEventDto();
                instance.StartDate = DateTime.Today;
                e.Instance         = instance;
                break;

            case InstanceTypes.Activity:
                e.Instance = new ActivityDto();
                break;

            case InstanceTypes.Transaction:
                e.Instance = new TransactionDto();
                break;
            }
        }
 protected void ucIList_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     e.Instance = new SellingPeriodDto();
 }
Exemplo n.º 12
0
 protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
 }
Exemplo n.º 13
0
 protected void ucListManager_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     e.Instance = new DEntityDto();
 }
Exemplo n.º 14
0
 protected void ucIList_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e)
 {
     e.Instance = new ProductDto();
 }