Exemple #1
0
 public void ShowAllSkillGroup()
 {
     try
     {
         BorderSingeOrgDetail.Visibility = System.Windows.Visibility.Collapsed;
         StackPanelAllOrgTypeDetail.Children.Clear();
         DataRow[] LDataRowAllSkillGroup = App.IDataTable11009.Select("C000 = 2", "C002 ASC");
         foreach (DataRow LDataRowSkillGroup in LDataRowAllSkillGroup)
         {
             UCSingleSkillGroupLeft LUCSingleSkillGroup = new UCSingleSkillGroupLeft(LDataRowSkillGroup);
             LUCSingleSkillGroup.IPageParent      = this;
             LUCSingleSkillGroup.IOperationEvent += LUCSingleSkillGroup_IOperationEvent;
             LUCSingleSkillGroup.ShowSkillGroupInformation();
             LUCSingleSkillGroup.Margin = new Thickness(0, 1, 0, 1);
             StackPanelAllOrgTypeDetail.Children.Add(LUCSingleSkillGroup);
         }
         ShowElementContent();
     }
     catch { }
 }
Exemple #2
0
        private void ResetAllSkillGroupList()
        {
            if (IListStrAfterSave[12] == "A")
            {
                DataRow LDataRowNew = App.IDataTable11009.NewRow();
                LDataRowNew.BeginEdit();
                LDataRowNew["C000"] = 2;
                LDataRowNew["C001"] = long.Parse(IListStrAfterSave[4]);
                LDataRowNew["C002"] = Int16.Parse(IListStrAfterSave[10]);
                LDataRowNew["C003"] = 0;
                LDataRowNew["C004"] = IListStrAfterSave[5];
                LDataRowNew["C005"] = 2;
                LDataRowNew["C006"] = IListStrAfterSave[6];
                LDataRowNew["C007"] = IListStrAfterSave[7];
                LDataRowNew["C008"] = IListStrAfterSave[9];
                LDataRowNew["C009"] = IListStrAfterSave[8];
                LDataRowNew["C010"] = "";
                LDataRowNew["C011"] = "";
                LDataRowNew.EndEdit();
                App.IDataTable11009.Rows.Add(LDataRowNew);

                UCSingleSkillGroupLeft LUCSingleSkillGroup = new UCSingleSkillGroupLeft(LDataRowNew);
                LUCSingleSkillGroup.IPageParent      = this;
                LUCSingleSkillGroup.IOperationEvent += LUCSingleSkillGroup_IOperationEvent;
                LUCSingleSkillGroup.ShowSkillGroupInformation();
                LUCSingleSkillGroup.Margin = new Thickness(0, 1, 0, 1);
                StackPanelAllOrgTypeDetail.Children.Add(LUCSingleSkillGroup);
                LUCSingleSkillGroup.BringIntoView();
                LUCSingleSkillGroup.SendClickedMessage();
            }
            if (IListStrAfterSave[12] == "E")
            {
                foreach (object LObjectSingleOrgType in StackPanelAllOrgTypeDetail.Children)
                {
                    UCSingleSkillGroupLeft LUCSingleSkillGroup = LObjectSingleOrgType as UCSingleSkillGroupLeft;
                    if (LUCSingleSkillGroup.IDataRow11009["C001"].ToString() == IListStrAfterSave[4])
                    {
                        LUCSingleSkillGroup.IDataRow11009["C004"] = IListStrAfterSave[5];
                        LUCSingleSkillGroup.IDataRow11009["C006"] = IListStrAfterSave[6];
                        LUCSingleSkillGroup.IDataRow11009["C008"] = IListStrAfterSave[9];
                        LUCSingleSkillGroup.IDataRow11009["C009"] = IListStrAfterSave[8];
                        LUCSingleSkillGroup.ShowSkillGroupInformation();

                        IDataRowCurrentFocused["C004"] = IListStrAfterSave[5];
                        IDataRowCurrentFocused["C006"] = IListStrAfterSave[6];
                        IDataRowCurrentFocused["C008"] = IListStrAfterSave[9];
                        IDataRowCurrentFocused["C009"] = IListStrAfterSave[8];
                        ShowSingleSkillGroupInformation();
                        return;
                    }
                }
            }

            if (IListStrAfterSave[12] == "D")
            {
                IDataRowCurrentFocused          = null;
                BorderSingeOrgDetail.Visibility = System.Windows.Visibility.Collapsed;
                foreach (object LObjectSingleOrgType in StackPanelAllOrgTypeDetail.Children)
                {
                    UCSingleSkillGroupLeft LUCSingleSkillGroup = LObjectSingleOrgType as UCSingleSkillGroupLeft;
                    if (LUCSingleSkillGroup.IDataRow11009["C001"].ToString() == IListStrAfterSave[4])
                    {
                        StackPanelAllOrgTypeDetail.Children.Remove(LUCSingleSkillGroup);
                        return;
                    }
                }
            }
        }