Esempio n. 1
0
        private void btnCommitSplitClasses_Click(object sender, EventArgs e)
        {
            FinalClassNames        finalClassNames    = new FinalClassNames(_connString);
            List <FinalClassNames> finalClassNameList = finalClassNames.GetFinalClassNames();

            if (finalClassNameList != null && finalClassNameList.Count > 0)
            {
                ClearFinalClassNames(finalClassNameList);
                foreach (FinalClassNames finalClassName in finalClassNameList)
                {
                    Guid?            show_Final_Class_ID = null;
                    ShowEntryClasses showEntryClass      = new ShowEntryClasses(_connString, finalClassName.Show_Entry_Class_ID);
                    ShowFinalClasses showFinalClass      = new ShowFinalClasses(_connString);
                    showFinalClass.Show_ID                      = showEntryClass.Show_ID;
                    showFinalClass.Show_Entry_Class_ID          = showEntryClass.Show_Entry_Class_ID;
                    showFinalClass.Show_Final_Class_Description = finalClassName.Show_Final_Class_Description;
                    showFinalClass.Show_Final_Class_No          = finalClassName.OrderBy;
                    show_Final_Class_ID = showFinalClass.Insert_Show_Final_Class(_user_ID);
                    if (show_Final_Class_ID == null)
                    {
                        MessageLabel.Text = "Show Final Class Insert Failed!";
                        break;
                    }
                    else
                    {
                        MessageLabel.Text = "Show Final Class Insert Successful.";
                    }
                }
            }
        }
Esempio n. 2
0
 protected void btnCommit_Click(object sender, EventArgs e)
 {
     FinalClassNameList = SplitClasses.DisplayFinalClassNames(_connString);
     StoreCommon();
     if (FinalClassNameList != null && FinalClassNameList.Count > 0)
     {
         MembershipUser userInfo = Membership.GetUser();
         Guid           user_ID  = (Guid)userInfo.ProviderUserKey;
         ClearFinalClassNames();
         foreach (FinalClassNames finalClassName in FinalClassNameList)
         {
             Guid?            show_Final_Class_ID = null;
             ShowEntryClasses showEntryClass      = new ShowEntryClasses(_connString, finalClassName.Show_Entry_Class_ID);
             ShowFinalClasses showFinalClass      = new ShowFinalClasses(_connString);
             showFinalClass.Show_ID                      = showEntryClass.Show_ID;
             showFinalClass.Show_Entry_Class_ID          = showEntryClass.Show_Entry_Class_ID;
             showFinalClass.Show_Final_Class_Description = finalClassName.Show_Final_Class_Description;
             showFinalClass.Show_Final_Class_No          = finalClassName.OrderBy;
             show_Final_Class_ID = showFinalClass.Insert_Show_Final_Class(user_ID);
             if (show_Final_Class_ID == null)
             {
                 MessageLabel.Text = "Show Final Class Insert Failed!";
                 break;
             }
             else
             {
                 MessageLabel.Text = "Show Final Class Insert Successful.";
             }
         }
     }
 }