Exemplo n.º 1
0
        private void LoadResourceType()
        {
            try
            {
                ResourceTypeManager    rsTypeMan = new ResourceTypeManager();
                ResourceTypeCollection rsTypes   = rsTypeMan.GetAllResourceTypes();
                //Thêm

                if (rsTypes.Count > 0)
                {
                    dgridRsType.DataSource = rsTypes;
                    dgridRsType.DataBind();

                    CurrentFormState = FormState.Default;
                }
                else
                {
                    CurrentFormState = FormState.NoDataState;
                }
            }
            catch (Exception ex)
            {
                ucErrorBox.Message = ex.Message;
                CurrentFormState   = FormState.ErrorState;
                this.SaveErrorLog(ex);
            }
        }
Exemplo n.º 2
0
        private void LoadReSourceTypes()
        {
            ResourceTypeManager    rsTypeMan = new ResourceTypeManager();
            ResourceTypeCollection rsTypes   = rsTypeMan.GetAllResourceTypes();

            if (rsTypes.Count > 0)
            {
                ddlResourceType.DataSource     = rsTypes;
                ddlResourceType.DataValueField = "ResourceTypeCode";
                ddlResourceType.DataTextField  = "Name";
                ddlResourceType.DataBind();

                ddlResourceType.SelectedIndex = 1;
            }
        }
Exemplo n.º 3
0
        private void LoadReSourceTypes()
        {
            try
            {
                ResourceTypeManager    rsTypeMan = new ResourceTypeManager();
                ResourceTypeCollection rsTypes   = rsTypeMan.GetAllResourceTypes();

                if (rsTypes.Count > 0)
                {
                    ddlResourceType.DataSource     = rsTypes;
                    ddlResourceType.DataValueField = "ResourceTypeCode";
                    ddlResourceType.DataTextField  = "Name";
                    ddlResourceType.DataBind();
                }
            }
            catch (Exception ex)
            {
                CurrentFormState   = FormState.ErrorState;
                ucErrorBox.Message = ex.Message;
                this.SaveErrorLog(ex);
            }
        }