Exemple #1
0
        /// <summary>
        ///     部门树加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void trDept_NodeCommand(object sender, TreeCommandEventArgs e)
        {
            BindDataGrid();

            if (trDept.SelectedNodeID != "1")
            {
                btnAdd.OnClientClick = Window1.GetShowReference(string.Format("./ParsEdit.aspx?action=1&FSubCateId={0}&timestamp={1}",
                                                                              trDept.SelectedNodeID, SequenceGuid.GetGuidReplace()), "添加产品");
            }
        }
Exemple #2
0
 /// <summary>
 /// 导出本页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnExport_Click(object sender, EventArgs e)
 {
     Response.ClearContent();
     Response.AddHeader("content-disposition", string.Format(@"attachment; filename=空瓶出库单{0}.xls", SequenceGuid.GetGuidReplace()));
     Response.ContentType     = "application/excel";
     Response.ContentEncoding = Encoding.UTF8;
     Response.Write(Utils.GetGridTableHtml(Grid1));
     Response.End();
 }
Exemple #3
0
        /// <summary>
        ///     页面初始化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPermissionButtons(Toolbar1);

                //产品分类
                LoadTreeSource();

                btnAdd.OnClientClick = Window1.GetShowReference(string.Format("./ParsEdit.aspx?action=1&FSubCateId={0}&timestamp={1}",
                                                                              trDept.SelectedNodeID, SequenceGuid.GetGuidReplace()), "添加产品");

                //btnBatchDelete.ConfirmText = "你确定要执行删除操作吗?";

                BindDataGrid();
            }
        }