Exemplo n.º 1
0
		public bool SetData(WCFStandardsNS.WCFStandards DataBase, ControlUserData UserData, DataSet SchemaDataSet,
			TableLayoutDefinition TableLayoutDefinitions, DataRow RowToProcess, String Title)
			{
			m_CommonUserInterface.SkipThisColumns = SkipThisColumns;

			m_CommonUserInterface.InsertSqlStatement = InsertSqlStatement;
			m_CommonUserInterface.DeleteSqlStatement = DeleteSqlStatement;
			m_CommonUserInterface.FillSqlStatement = FillSqlStatement;
			m_CommonUserInterface.ReadableSqlStatement = ReadableSqlStatement;

			if (CheckTheSelectionFillStatementCall != null)
				m_CommonUserInterface.CheckTheSelectionFillStatementCall
					+= new CheckTheSelectionFillStatementEvent (m_CommonUserInterface_CheckTheSelectionFillStatementCall);
			bool ReturnCode = m_CommonUserInterface.SetData (DataBase, UserData,
					SchemaDataSet, TableLayoutDefinitions, RowToProcess, Title);

			m_CommonUserInterface.ProcessModifyKeyTableCall += ProcessModifyKeyTableCall;
			m_CommonUserInterface.GetReadableTextForEntryCall +=
				new GetReadableTextForEntryEvent (m_CommonUserInterface_GetReadableTextForEntryCall);
			m_CommonUserInterface.DoIndividualDataCheckBeforeUpdateCall +=
				new DoIndividualDataCheckBeforeUpdateEvent (m_CommonUserInterface_DoIndividualDataCheckBeforeUpdateCall);
			m_CommonUserInterface.HandleShowAndEditListBoxEntry_MouseRightButtonUpCall +=
				new HandleShowAndEditListBoxEntry_MouseRightButtonUpEvent
					(m_CommonUserInterface_HandleShowAndEditListBoxEntry_MouseRightButtonUpCall);
			m_CommonUserInterface.CloseRequestedCall += new CloseRequested (m_CommonUserInterface_CloseRequestedCall);
			m_TableLayoutDefinition = m_CommonUserInterface.LayoutDefinition;

			return ReturnCode;
			}
Exemplo n.º 2
0
        public bool SetData(WCFStandardsNS.WCFStandards ParentsDataBase, ControlUserData UserDataParameter, DataSet SchemaDataSet,
            TableLayoutDefinition TableLayoutDefinition, DataRow RowToProcess, String Title)
            {
            m_TableHelper = new CVM.TableUserControlHelper ();
            m_TableHelper.DataBase = ParentsDataBase;
            m_Bereich = "";
            m_SchemaDataSet = SchemaDataSet;
            LayoutDefinition = TableLayoutDefinition;
            DataBase = ParentsDataBase;

            m_ActiveID = RowToProcess ["ID"].ToString ();
            m_RefreshmentRoutine = UserDataParameter.m_RefreshFunctionName;
            m_PrimaryKeyName = UserDataParameter.m_PrimaryKeyName;
            m_TableHelper.TableName = UserDataParameter.m_TableName;
            m_ProcessingDataSet = null;
            UserData = UserDataParameter;
            SetRowToProcess (RowToProcess, Title, UserDataParameter.m_UpdateAble);

            if (LayoutDefinition == null)
                {
                m_TableHelper.LayoutDefinitionsPropertyToken = "CommonUserInterfaceWindow_";
                LayoutDefinition = m_TableHelper.LayoutDefinition;
                }
            return true;
            }
		private void TestDefinitions_Click (object sender, RoutedEventArgs e)
			{
			ListBox SelectableEntries = LoadAndShowListBoxWithTestEntries ();
			CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows ();
			//StandardTableWindow.SkipThisColumns = GetSkipThisColumnForThisTable (TableRowToProcess);
			CVM.ControlUserData UserData = new ControlUserData (SelectedTableName, "ID", null, true);
			if (StandardTableWindow.SetData (m_DataBase, SelectableEntries, "", m_IIntelliSenseAutoCompletionFactory.SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }
			//StandardTableWindow.GetReadableTextForEntryCall +=
			//    new GetReadableTextForEntryEvent (DataRowWindow_GetReadableTextForEntryCall);
			//StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall +=
			//    new DoIndividualDataCheckBeforeUpdateEvent (DataRowWindow_DoIndividualDataCheckBeforeUpdateCall);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = this.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, this, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
				//}

				}


			}
Exemplo n.º 4
0
        public bool SetData(WCFStandardsNS.WCFStandards ParentsDataBase, ControlUserData UserDataParameter, DataSet SchemaDataSet,
            TableLayoutDefinition TableLayoutDefinition, String RecordIDToProcess)
            {
            m_TableHelper = new CVM.TableUserControlHelper ();
            m_TableHelper.DataBase = ParentsDataBase;
            m_Bereich = "";
            m_SchemaDataSet = SchemaDataSet;
            LayoutDefinition = TableLayoutDefinition;
            DataBase = ParentsDataBase;
	
            m_ActiveID = RecordIDToProcess;
            m_RefreshmentRoutine = UserDataParameter.m_RefreshFunctionName;
            m_PrimaryKeyName = UserDataParameter.m_PrimaryKeyName;
            m_TableHelper.TableName = UserDataParameter.m_TableName;
            m_ProcessingDataSet = DataBase.GetCommonDataSet (
                "Select * from " + UserDataParameter.m_TableName + " where " + m_PrimaryKeyName + " = '" + m_ActiveID + "'");
            if (UserDataParameter.m_UpdateAble)
                SetRowToProcess (m_ProcessingDataSet.Tables [0].Rows [0], "Bitte ändern Sie ggf. diese \""
                                                                          + UserData.m_TableName + "\" Daten", UserDataParameter.m_UpdateAble);
            else
                SetRowToProcess (m_ProcessingDataSet.Tables [0].Rows [0], "", UserData.m_UpdateAble);

            if (LayoutDefinition == null)
                {
                m_TableHelper.LayoutDefinitionsPropertyToken = "CommonUserInterfaceWindow_";
                LayoutDefinition = m_TableHelper.LayoutDefinition;
                }
            return true;
            }