Example #1
0
        private void BindgvShift()
        {
            ApplicationResult objResult      = new ApplicationResult();
            ShiftBl           objReceptionBl = new ShiftBl();

            objResult = objReceptionBl.Shift_SelectAll();
            if (objResult != null)
            {
                gvShift.DataSource = objResult.ResultDt;
                gvShift.DataBind();
                PanelVisibilityMode(true, false);
            }
        }
Example #2
0
        //protected void BindReceptionLineNo()
        //{

        //    ddlReceptionLineNo.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select All--", "-1"));
        //    ddlReceptionLineNo.Items.Insert(1, new System.Web.UI.WebControls.ListItem("RMST", "1"));
        //    ddlReceptionLineNo.Items.Insert(2, new System.Web.UI.WebControls.ListItem("PMST", "2"));
        //    ddlReceptionLineNo.Items.Insert(3, new System.Web.UI.WebControls.ListItem("CBST", "3"));
        //}
        #endregion


        #region Bind Shift No
        protected void BindShiftNo()
        {
            Controls objControls = new Controls();
            ShiftBl  objShiftBl  = new ShiftBl();
            var      objResult   = objShiftBl.Shift_SelectAll();

            if (objResult != null)
            {
                if (objResult.ResultDt.Rows.Count > 0)
                {
                    //objControls.BindDropDown_ListBox(objResult.ResultDt, ddlShiftNo, "Name", "ShiftId");
                }
                //ddlShiftNo.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select All--", "-1"));
            }
        }