/// <summary>
 /// 新增按钮触发事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void btn_DetailAdd()
 {
     //string Pur_status = ddlStatus.SelectedValue;
     FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel;
     P_search.Hidden = false;
     FineUI.DropDownList ddlstock = Window3.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_Stock") as FineUI.DropDownList;
     STOCKBll.GetInstence().BandDropDownListStock(this, ddlstock);
     Window3.Hidden = false;
 }
        /// <summary>
        /// 新增按钮触发事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void btn_DetailAdd(Object sender, EventArgs e)
        {
            string Pur_status = ddlStatus.SelectedValue;

            FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel;
            P_search.Hidden = false;
            FineUI.Button B_BtnSearchCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnSearchCon") as FineUI.Button;
            FineUI.Button B_BtnAddCon    = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnAddCon") as FineUI.Button;
            B_BtnSearchCon.Hidden = false;
            B_BtnAddCon.Hidden    = false;
            Window3.Hidden        = false;
        }
 /// <summary>
 /// WINDOW3 关闭事件
 /// </summary>
 public void Window3_Close()
 {
     FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel;
     P_search.Hidden = true;
     FineUI.Button B_BtnSearchCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnSearchCon") as FineUI.Button;
     FineUI.Button B_BtnAddCon    = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnAddCon") as FineUI.Button;
     B_BtnSearchCon.Hidden = true;
     B_BtnAddCon.Hidden    = true;
     FineUI.Button B_BtnEditCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnEditCon") as FineUI.Button;
     B_BtnEditCon.Hidden = true;
     Window3.Hidden      = true;
 }
 /// <summary>
 /// 子表添加商品
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void btn_DetailAdd(Object sender, EventArgs e)
 {
     //string Pur_status = ddlStatus.SelectedValue;
     FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel;
     P_search.Hidden = false;
     FineUI.DropDownList ddlstock = Window3.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_Stock") as FineUI.DropDownList;
     STOCKBll.GetInstence().BandDropDownListStock(this, ddlstock);
     Window3.Hidden = false;
     FineUI.Grid Grid4 = Window3.FindControl("PanelGrid4").FindControl("Grid4") as FineUI.Grid;
     Grid4.DataSource = null;
     Grid4.DataBind();
 }
        /// <summary>
        /// 新增按钮触发事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void btn_Pur02Add(Object sender, EventArgs e)
        {
            string Pur_status = ddlStatus.SelectedValue;

            FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel;
            P_search.Hidden = false;
            FineUI.Button B_BtnSearchCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnSearchCon") as FineUI.Button;
            FineUI.Button B_BtnAddCon    = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnAddCon") as FineUI.Button;
            B_BtnSearchCon.Hidden = false;
            B_BtnAddCon.Hidden    = false;
            Window3.Hidden        = false;
            FineUI.Grid Grid4 = Window3.FindControl("PanelGrid4").FindControl("Grid4") as FineUI.Grid;
            Grid4.DataSource = null;
            Grid4.DataBind();
        }
Exemple #6
0
        protected void BindDesk(FineUI.Panel px, int col, string AccountID)
        {
            px.Items.Clear();
            switch (col)
            {
            case 1: px.ColumnWidth = "100%"; break;

            case 2: px.ColumnWidth = "50%"; break;

            case 3: px.ColumnWidth = "33%"; break;
            }

            ds = InitDeskByUserId(AccountID);

            FineUI.Panel p;
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    p              = new FineUI.Panel();
                    p.ID           = "DeskPanel" + i.ToString();
                    p.Title        = ds.Tables[0].Rows[i]["DESKNAME"].ToString();
                    p.EnableIFrame = true;
                    p.IFrameUrl    = ds.Tables[0].Rows[i]["DESKURL"].ToString();
                    //p.AutoScroll = true;
                    p.ShowBorder = true;
                    p.ShowHeader = true;
                    p.Margin     = "4";
                    p.Width      = Unit.Pixel(int.Parse(ds.Tables[0].Rows[i]["DESKWIDTH"].ToString()));
                    p.Height     = Unit.Pixel(int.Parse(ds.Tables[0].Rows[i]["DESKHEIGHT"].ToString()));
                    if (ds.Tables[0].Rows[i]["ENABLECOL"].ToString() == "0")
                    {
                        p.EnableCollapse = false;
                    }
                    else
                    {
                        p.EnableCollapse = true;
                    }

                    px.Items.Add(p);
                }
            }
        }