protected void grdTabuladorMaestro_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     grdTabuladorMaestro.DataSource = vObtieneTabuladorMaestro;
 }
 protected void rgDGDV_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     _dgEntity.Load_AllDanhGiaOfNhanVien_ToRadGrid(rgDGDV, _nhanvienID);
 }
 protected void rgCity_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     retrieve();
 }
Exemple #4
0
        //----------------------------------------------------------------------------

        public void rgJobsAssigned_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            this.rgJobsAssigned.DataSource = this.GetJobsAssigned();
        }
Exemple #5
0
        protected void grdPeriodo_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            PeriodoNegocio neg = new PeriodoNegocio();

            grdPeriodos.DataSource = neg.ObtienePeriodosEvaluacion(pIdEmpleado: vIdEmpleado);
        }
Exemple #6
0
    // overtime data entry ddl data loading and binding
    protected void rOvertimeDataEntry4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsCommon.DDLValueSet_GetByDDLID_FromPayroll(Constraints.DropDownLists.OvertimeDataEntry, -1, 1).Tables[0];
    }
Exemple #7
0
    // roll down ddl data loading and binding
    protected void rGrdDftRollDown4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsCommon.DDLValueSet_GetByDDLID_FromPayroll(Constraints.DropDownLists.DefaultRolldownSetting, -1, 1).Tables[0];
    }
 protected void gvexamdetails_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     this.BindExamDetails();
 }
        protected void grdEvaluados_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            PeriodoDesempenoNegocio nPeriodo = new PeriodoDesempenoNegocio();

            grdEvaluados.DataSource = nPeriodo.ObtieneEvaluados(pIdPeriodo: vIdPeriodo, pIdRol: vIdRol);
        }
 protected void grdAdmcomunicados_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     vAdmcomunicados = negocio.ObtenerComunicados();
     grdAdmcomunicados.DataSource = vAdmcomunicados;
 }
Exemple #11
0
 protected void rgITBA_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     loadUsers();
 }
Exemple #12
0
 protected void RadGridNhanVien_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     _lvEntity.Load_LamViecDenNgay_ToRadGrid(RadGridNhanVien, _ngaycongtac);
 }
Exemple #13
0
 protected void grdPersonas_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     grdPersonas.DataSource = vLstEvaluados;
 }
Exemple #14
0
        protected void rgGrupos_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            GruposNegocio oNegocio = new GruposNegocio();

            rgGrupos.DataSource = oNegocio.ObtieneGrupos();
        }
Exemple #15
0
    // default overtime ddl data loading and binding
    protected void rGrddftOvertime4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsDAL.GetDataSet_Payroll("sp_payroll_GetAllOvertimeRecords", htSearchParams).Tables[0];
    }
 protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     // load grid data
     RadGrid1.DataSource = CntAriCli.GetPatients(ctx);
 }
Exemple #17
0
    // leave enchasement ddl data loading and binding
    protected void rGrdLeaveEnchasment4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsCommon.DDLValueSet_GetByDDLID_FromPayroll(Constraints.DropDownLists.LeaveEncashment, -1, 1).Tables[0];
    }
Exemple #18
0
 protected void rgTaskType_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     getTaskType();
 }
Exemple #19
0
    // employee salary ddl data loading and binding
    protected void rEmployeeSalaryCalculation4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsCommon.DDLValueSet_GetByDDLID_FromPayroll(Constraints.DropDownLists.EmployeeSalaryCalculation, -1, 1).Tables[0];
    }
        protected void grdVersiones_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            VersionesNegocio neg = new VersionesNegocio();

            grdVersiones.DataSource = neg.ObtenerVersiones();
        }
 protected void rgTien_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     _tienEntity.Load_AllTienOfKeKhai_ToRadGrid(rgTien, _kekhaiID);
 }
 protected void rgChildSchedule_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     DayCareBAL.ChildScheduleService proxyChildSchedule = new DayCareBAL.ChildScheduleService();
     rgChildSchedule.DataSource = proxyChildSchedule.LoadChildSchedule(GetChildSchoolYearId());
 }
 protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     DataLoad();
 }
 protected void grdTelefonos_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     grdTelefonos.DataSource = lstTelefonos;
 }
Exemple #25
0
 protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     // load grid data
     RadGrid1.DataSource = ctx.Users;
 }
Exemple #26
0
    // country ddl data loading and binding
    protected void rGrdCountry4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsDAL.GetDataSet_Payroll("sp_payroll_getallcountries", htSearchParams).Tables[0];
    }
 protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     RadGrid1.DataSource = this.Sellers;
 }
Exemple #28
0
    // ticket benefit ddl data loading and binding
    protected void rGrdTicketBnefit4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsDAL.GetDataSet_Payroll("sp_Payroll_Get_BenefitCode_Records", htSearchParams).Tables[0];
    }
        void grdResourceManifestJobs_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            DataSet   dsDrivers = new DataSet();
            DataTable dt        = new DataTable();

            dt.Columns.Add(new DataColumn("JobID", typeof(int)));
            dt.Columns.Add(new DataColumn("SubContractorIdentityID", typeof(string)));
            dt.Columns.Add(new DataColumn("OrganisationName", typeof(string)));
            dt.Columns.Add(new DataColumn("Instructions", typeof(string)));
            dt.Columns.Add(new DataColumn("EarliestDateTime", typeof(DateTime)));
            dt.Columns.Add(new DataColumn("OrderIDs", typeof(string)));
            dt.Columns.Add(new DataColumn("ResourceManifestId", typeof(int)));
            dt.Columns.Add(new DataColumn("Removed", typeof(bool)));
            dt.Columns.Add(new DataColumn("ActiveOnAnotherManifestId", typeof(string)));
            dt.Columns.Add(new DataColumn("ResourceManifestJobId", typeof(int)));
            dsDrivers.Tables.Add(dt);

            Facade.ResourceManifest facResourceManifest = new Orchestrator.Facade.ResourceManifest();
            DataSet ds = facResourceManifest.GetResourceManifestJobInstructions(this.ResourceManifestId);

            int  currentJobID  = -1;
            int  currentDriver = -1;
            bool rowAdded      = true;

            string InstructionText  = string.Empty;
            string myOrderIds       = String.Empty;
            bool   hasDriverChanged = false;

            DataRow row = null;

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                string   orderIDs = String.Empty;
                DateTime plannedArrivalDateTime = chkUsePlannedTimes.Checked ? Convert.ToDateTime(dr["PlannedArrivalDateTime"]) : Convert.ToDateTime(dr["OrderDateTime"]);

                // Get the OrderIDs for the PIL Production.
                orderIDs = GetOrderIDs(dr);

                if (((int)dr["SubContractorIdentityID"] != currentDriver))
                {
                    if (row != null)
                    {
                        if (InstructionText.Length > 0)
                        {
                            row["Instructions"] = InstructionText;
                            row["OrderIDs"]     = myOrderIds;
                        }
                        // Add the row to the table
                        dt.Rows.Add(row);
                        rowAdded = true;
                    }
                    currentDriver    = (int)dr["SubContractorIdentityID"];
                    InstructionText  = String.Empty;
                    myOrderIds       = String.Empty;
                    hasDriverChanged = true;
                }
                if (dr["JobID"] != DBNull.Value && (((int)dr["JobID"] != currentJobID) || hasDriverChanged))
                {
                    if (row != null && rowAdded == false)
                    {
                        if (InstructionText.Length > 0)
                        {
                            row["Instructions"] = InstructionText;
                            row["OrderIDs"]     = myOrderIds;
                            // Add the row to the table
                            dt.Rows.Add(row);
                        }
                    }
                    hasDriverChanged = false;
                    currentJobID     = (int)dr["JobID"];
                    InstructionText  = String.Empty;
                    myOrderIds       = String.Empty;

                    // Add a New Row
                    row = dt.NewRow();
                    row["OrganisationName"]        = dr["OrganisationName"];
                    row["JobID"]                   = dr["JobID"];
                    row["EarliestDateTime"]        = plannedArrivalDateTime;
                    row["SubContractorIdentityID"] = dr["SubContractorIdentityID"];
                    rowAdded = false;
                    // Add the First Instruction to the Text
                    InstructionText                  = GetInstructionText(dr);
                    myOrderIds                       = GetOrderIDs(dr);
                    row["Instructions"]              = InstructionText;
                    row["OrderIDs"]                  = myOrderIds;
                    row["ResourceManifestId"]        = dr["ResourceManifestId"];
                    row["Removed"]                   = dr["Removed"];
                    row["ActiveOnAnotherManifestId"] = dr["ActiveOnAnotherManifestId"];
                    row["ResourceManifestJobId"]     = dr["ResourceManifestJobId"];
                }
                else if (dr["JobID"] != DBNull.Value && (int)dr["JobID"] == currentJobID)
                {
                    if (plannedArrivalDateTime < ((DateTime)row["EarliestDateTime"]))
                    {
                        row["EarliestDateTime"] = plannedArrivalDateTime;
                    }
                    //Add the instruction
                    InstructionText    += "<br/>" + GetInstructionText(dr);
                    myOrderIds         += ("," + GetOrderIDs(dr));
                    row["Instructions"] = InstructionText;
                }
                else
                {
                    // Not assigned
                    if (row != null && rowAdded == false)
                    {
                        if (InstructionText.Length > 0)
                        {
                            row["Instructions"] = InstructionText;
                            row["OrderIDs"]     = myOrderIds;
                            // Add the row to the table
                            dt.Rows.Add(row);
                        }
                    }

                    // Add a New Row
                    row = dt.NewRow();
                    row["OrganisationName"]        = dr["OrganisationName"];
                    row["SubContractorIdentityID"] = dr["SubContractorIdentityID"];
                    row["JobID"]                     = dr["JobID"];
                    rowAdded                         = false;
                    InstructionText                  = String.Empty;
                    myOrderIds                       = String.Empty;
                    row["ResourceManifestId"]        = dr["ResourceManifestId"];
                    row["Removed"]                   = dr["Removed"];
                    row["ActiveOnAnotherManifestId"] = dr["ActiveOnAnotherManifestId"];
                    row["ResourceManifestJobId"]     = dr["ResourceManifestJobId"];
                }
            }
            if (rowAdded == false && row != null && row["OrganisationName"] != DBNull.Value)
            {
                dt.Rows.Add(row);
            }

            foreach (DataRow r in dt.Rows)
            {
                if (r["Removed"].ToString().ToLower() == "true")
                {
                    r["Instructions"] = REMOVED_JOB_INSTRUCTION_TEXT;
                }
            }

            this.grdResourceManifestJobs.DataSource = dsDrivers;
        }
    // leave type ddl data loading and binding
    protected void rGrdLeaveType4DDL_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = sender as RadGrid;

        grid.DataSource = clsDAL.GetDataSet_Payroll("sp_Payroll_Get_All_LeaveTypeSetup", htSearchParams).Tables[0];
    }