protected void Setup( string FieldName , string FieldDesc , int Width = 100 , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool Visible = true , bool Enabled = true , string ClientSideBeginEdit = "" , string ClientSideEndEdit = "" , string CommandName = "") { base.Setup(FieldName, FieldDesc, Width, DataFormat, FieldType, Visible, Enabled); this.mClientSideBeginEdit = ClientSideBeginEdit; this.mClientSideEndEdit = ClientSideEndEdit; this.mCommandName = CommandName; }
protected virtual void Setup( string FieldName , string FieldDesc , Int32 Width = 100 , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool Visible = true , bool Enabled = true) { this.mFieldName = FieldName; this.mFieldDesc = FieldDesc; this.mColumnName = FieldName; this.mWidth = Width; this.mDataFormat = DataFormat; this.mFieldType = FieldType; this.mVisible = Visible; this.mEnabled = Enabled; }
public ClsBindGridColumn_Web_Telerik( string FieldName , string FieldDesc , Unit? Width = null , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool IsVisible = true , bool Enabled = true , bool IsFilter = true) : base(FieldName , FieldDesc , Width , DataFormat , FieldType , IsVisible , Enabled , IsFilter) { }
public ClsBindGridColumn(string FieldName , string FieldDesc , Int32 Width = 100 , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool IsVisible = true , bool Enabled = true , bool IsFilter = true) { this.Setup( FieldName , FieldDesc , Width , DataFormat , FieldType , IsVisible , Enabled , IsFilter); }
public ClsBindGridColumn_Web( string FieldName , string FieldDesc , Unit? Width = null , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool IsVisible = true , bool Enabled = true , bool IsFilter = true) { this.Setup( FieldName , FieldDesc , 100 , DataFormat , FieldType , IsVisible , Enabled , IsFilter); this.mUnit_Width = Width == null ? new Unit("100px") : Width.Value; }
public ClsBindGridColumn_EO( string FieldName , string FieldDesc , int Width = 100 , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , bool Visible = true , bool Enabled = true , string ClientSideBeginEdit = "" , string ClientSideEndEdit = "" , string CommandName = "") { this.Setup( FieldName , FieldDesc , Width , DataFormat , FieldType , Visible , Enabled , ClientSideBeginEdit , ClientSideEndEdit , CommandName); }
protected virtual void Setup( Layer01_Constants.eSystem_Modules pSystem_ModulesID , ClsBase pObj_Base , string pModuleName = "") { Keys Keys = null; try { Keys = (Keys)this.Session[Layer01_Constants_Web.CnsSession_Keys]; this.Session[Layer01_Constants_Web.CnsSession_Keys] = null; } catch { } this.mMaster.Setup(Keys, pSystem_ModulesID, pObj_Base, pModuleName); this.mSystem_ModulesID = (Int64)pSystem_ModulesID; this.Session[this.mMaster.pObjID + CnsSessionPageObj] = new Collection(); }
public bool CheckAccess(Int64 System_ModulesID, Layer01_Constants.eAccessLib AccessLib) { throw new NotImplementedException(); //if (!this.mIsLoggedIn) //{ return false; } //Interface_DataAccess Da = Do_Methods.CreateDataAccess(); //try //{ // if (this.mIsAdmin) // { return true; } // Da.Connect(); // DataTable Dt = // Da.GetQuery( // @"uvw_User_Rights As Ur Left Join uvw_Rights_Details As Rd On Ur.RightsID = Rd.RightsID" // , @"Ur.UserID, Rd.*" // , @"Ur.UserID = " + ((Int64)this.mDrUser["UserID"]).ToString() + " And Rd.System_ModulesID = " + System_ModulesID.ToString() + " And Rd.System_Modules_AccessLibID = " + ((long)AccessLib).ToString() + " And Rd.IsAllowed = 1 And Ur.IsActive = 1" // , "UserID"); // if (Dt.Rows.Count > 0) // { return true; } // return false; //} //catch (Exception ex) //{ throw ex; } //finally //{ Da.Close(); } }
protected override void Setup(string FieldName, string FieldDesc, int Width = 100, string DataFormat = "", Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static, bool IsVisible = true, bool Enabled = true, bool IsFilter = true) { base.Setup(FieldName, FieldDesc, Width, DataFormat, FieldType, IsVisible, Enabled, IsFilter); if (this.mUnit_Width == null) { this.mUnit_Width = new Unit(this.mWidth.ToString() + "px"); } }
protected virtual void Setup( string FieldName , string FieldDesc , Int32 Width = 100 , string DataFormat = "" , Layer01_Constants.eSystem_Lookup_FieldType FieldType = Layer01_Constants.eSystem_Lookup_FieldType.FieldType_Static , Layer01_Constants.eSystem_Lookup_HorizontalAlign HorizontalAlign = Layer01_Constants.eSystem_Lookup_HorizontalAlign.Grid_HorizontalAlign_General , bool IsVisible = true , bool Enabled = true , bool IsFilter = true) { this.pFieldName = FieldName; this.pFieldDesc = FieldDesc; this.pColumnName = FieldName; this.pWidth = Width; this.pDataFormat = DataFormat; this.pFieldType = FieldType; this.pHorizontalAlign = HorizontalAlign; this.pIsVisible = IsVisible; this.pIsEnabled = Enabled; this.pIsFilter = IsFilter; }
public bool CheckAccess(Int64 System_ModulesID, Layer01_Constants.eAccessLib AccessLib) { if (!this.mIsLoggedIn) { return false; } if (this.mIsAdmin) { return true; } Interface_DataAccess Da = Do_Methods.CreateDataAccess(); try { Da.Connect(); DataTable Dt = Da.GetQuery( @"uvw_User_Rights As Ur Left Join uvw_Rights_Details As Rd On Ur.RightsID = Rd.RightsID" , @"Ur.UserID, Rd.*" , @"Ur.UserID = " + ((Int64)this.mDrUser["UserID"]).ToString() + " And Rd.System_ModulesID = " + System_ModulesID.ToString() + " And Rd.System_Modules_AccessLibID = " + ((long)AccessLib).ToString() + " And Rd.IsAllowed = 1 And Ur.IsActive = 1" , "UserID"); if (Dt.Rows.Count > 0) { return true; } return false; } catch (Exception ex) { throw ex; } finally { Da.Close(); } }