Ejemplo n.º 1
0
        private void GetFactoryList()
        {
            try
            {
                string Ocode  = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode);
                string F_Name = txtS_FactoryName.Text;

                if (txtS_FactoryName.Text != "")
                {
                    List <LC_Factory> _FactoryLN = _factorybLL.LoadFactoryListBySName(Ocode, F_Name);

                    grdFactory1.DataSource = _FactoryLN;
                    grdFactory1.DataBind();
                }
                else
                {
                    List <LC_Factory> _FactoryL = _factorybLL.LoadFactoryList(Ocode);

                    grdFactory1.DataSource = _FactoryL;
                    grdFactory1.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }