Beispiel #1
0
        private void List_CultureCode(string sortExpr, bool?sortDir)
        {
            MultiViewCtl.SetActiveView(View_List_CultureCode);

            CultureCode_List.DataSource = WM.CultureCode.GetReader(
                null,
                null,
                sortExpr,
                sortDir);
            CultureCode_List.DataBind();
        }
Beispiel #2
0
        private void Edit_CultureCode()
        {
            MultiViewCtl.SetActiveView(View_Edit_CultureCode);

            WM.CultureCode cultureCode = GetCurrent_CultureCode();

            if (cultureCode.IsNew)
            { //create new
                Page.Title = "Create New " + _entityName_cultureCode;
                NewCultureCodeNamePanel.Visible    = true;
                IsDefaultMsg.Visible               = false;
                IsNotDefaultMsg.Visible            = false;
                CultureCodeNameHeaderCtl.InnerHtml = "New " + _entityName_cultureCode;
            }
            else
            { //update existing
                Page.Title = "Edit " + _entityName_cultureCode;
                CultureCodeNameHeaderCtl.InnerHtml = cultureCode.Name;
                Load_CultureCode(cultureCode);
            }

            Page.Form.DefaultButton = CultureCode_SaveButton.UniqueID;
        }
 protected void CreateNewButton_Click(object sender, EventArgs e)
 {
     MultiViewCtl.SetActiveView(EditView);
 }
 private void List_MasterDetail_Item(string sortExpr, bool?sortDir)
 {
     MultiViewCtl.SetActiveView(ListView);
     MasterDetail_Item_List.DataSource = MasterDetailList.GetMasterDetailChildren(this.ModuleId, false, false);
     MasterDetail_Item_List.DataBind();
 }