Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sys = Request["sys"];
        if (sys == "D" || sys == "B" || sys == "T")
        {
            sys = "O";
        }
        //if (!X.IsAjaxRequest)
        //{
        //        //ControlsInitial();
        //        //userDept = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
        //        //stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();
        //        //isServer = FSecurityHelper.CurrentUserDataGET()[30].ToUpper();

        //        //if ((userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N") && isServer == "Y")
        //        //{
        //        //    DisabledControl();
        //        //}
        //        //else
        //        //{
        //        //    UseControl();
        //        //}

        //        //ControlBinding();
        //        ////DataBinder();
        //        //div_bottom.Html = "<p>Status: New Item record .</p>";

        //}
        ControlBinder.ChkGroupBind(this.tblChkGroup);    //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #2
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        this.sys = Request["sys"];

        if (sys == "D" || sys == "B" || sys == "T")
        {
            sys = "O";
        }
        if (!X.IsAjaxRequest)
        {
            ControlBinder.CmbBinder(StoreCompany, "CompanyList", sys);
            ControlBinder.CmbBinder(storeCountry, "CountryList", sys);
            ControlBinder.CmbBinder(storeCurrency, "CurrencysList", sys);
            Code.Text       = Request["code"];
            dep             = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
            stationSys      = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();
            div_bottom.Html = "<p>Status: New location record .</p>";
            if (dep == "OP" || dep == "ACCOUNT" || stationSys == "N")
            {
                DisabledControl();
            }
            else
            {
                UseControl();
            }
        }
        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #3
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            if (!IsPostBack)
            {
                //string userStat = FSecurityHelper.CurrentUserDataGET()[12];
                //string userApart = FSecurityHelper.CurrentUserDataGET()[28];
                sys = Request["sys"] == null ? "A" : Request["sys"];
                //userDept = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
                //stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();
                txtCode.Text = Request["code"];
                //if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N")
                //{
                //    DisabledControl();
                //}
                //else
                //{
                //    UseControl();
                //}
                BindCombox();

                div_bottom.Html = "<p>Status: New Container Size record .</p>";
            }
        }

        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sys = Request["sys"];
        if (!X.IsAjaxRequest)
        {
            if (!IsPostBack)
            {
                Code.Text = Request["code"];
                ControlBinder.CmbBinder(StoreCompany, "CompanyList", sys);

                div_bottom.Html = "<p>Status: New Salesman record .</p>";
            }
        }

        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #5
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            userDept   = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
            stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();

            if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N")
            {
                DisabledControl();
            }
            else
            {
                UseControl();
            }
            CotrolsInitial();
            div_bottom.Html = "<p>Status: New Domestic Status record .</p>";
        }
        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #6
0
    public string isserver    = FSecurityHelper.CurrentUserDataGET()[30].ToUpper();     // Y  当前分公司已经分开系统 fco_isserver=1 ,N 没有分开
    /// <summary>
    /// 根据所属部门初始化控件
    /// </summary>
    private void InitControls()
    {
        if ((dept == "ADMIN" || dept == "IT") && currStation == "Y")
        {
            if (hidRowID.Value != "0")
            {
                txtBuy.Disabled  = true;
                txtSell.Disabled = true;
                txtRate.Disabled = true;
            }
        }
        else
        {
            Code.Disabled           = true;
            countryControl.Disabled = true;
            Description.Disabled    = true;
            txtBuy.Disabled         = true;
            txtSell.Disabled        = true;
            txtRate.Disabled        = true;
            Country.Disabled        = true;
            chkActive.Disabled      = true;
            chkLocal.Disabled       = true;
            ChkGrpStat.Enabled      = false;
            Checkforeign.Disabled   = true;
            Save.Disabled           = true;
            Next.Disabled           = true;
            Cancel.Disabled         = true;
            ChkGrpStat.Hide();
            if (dept == "ACCOUNT")
            {
                countryControl.Disabled = false;
                txtBuy.Disabled         = false;
                txtSell.Disabled        = false;
                txtRate.Disabled        = false;
                Save.Disabled           = false;
            }
        }

        ControlBinder.ChkGroupBind(ChkGrpStat);
    }
Example #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!X.IsAjaxRequest)
     {
         //this.BindData();
         Code.Focus(true);
         string dep = FSecurityHelper.CurrentUserDataGET()[28];
         if (!((dep.ToUpper() == "IT" || dep.ToUpper() == "ADMIN") && currStation == "Y"))
         {
             btnPrint.Visible = false;
             div_ShowActive.Attributes.CssStyle.Value = "display:none";
             tblChkGroup.Hide();
         }
         else
         {
             Code.Width    = new Unit(80);
             Address.Width = new Unit(100);
         }
     }
     ControlBinder.ChkGroupBind(this.tblChkGroup);
     CheckGroupClear();
 }
Example #8
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            ControlBinder.CmbBinder(storeCountry, "CountryList", "");

            userDept   = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
            stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();

            if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N")
            {
                DisabledControl();
            }
            else
            {
                UseControl();
            }
            //this.BindData();
            div_bottom.Html = "<p>Status: New Airline record .</p>";
            Code.Focus(true);
        }
        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #9
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            //userDept = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
            //stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();
            //if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N")
            //{
            //    DisabledControl();
            //}
            //else
            //{
            //    UseControl();
            //}

            txtCode.Text = Request["code"];
            BindCombox();
            //DataBinder();
            div_bottom.Html = "<p>Status: New Service Mode record .</p>";
        }

        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }
Example #10
0
    public string stationSys; //当前用户所在系统(总站Y或者分站N)

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            txtVessel.Focus(true);
            ControlBinder.CmbBinder(StoreCompany, "CompanyList", "o");

            userDept   = FSecurityHelper.CurrentUserDataGET()[28].ToUpper();
            stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper();

            if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N")
            {
                DisabledControl();
            }
            else
            {
                UseControl();
            }

            //DataBinder();
        }

        ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 )
    }