Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //绑定领用人
                BindSupplier();
                //绑定库房
                BindWH();

                if (OrderID <= 0)
                {
                    //生成订单信息
                    CreateOrderInfo();
                }
                else
                {
                    GetOrderInfo();
                }

                btnReturn.ConfirmText = "确定要取消当前领用单信息吗?";

                btnNew.OnClientClick = Window1.GetShowReference(string.Format("~/PublicWebForm/OrderReceiveSelectDialog.aspx?rowid={0}", OrderNO), "添加领用商品");
                // 删除选中单元格的客户端脚本
                btnDeleteSelected.OnClientClick = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
                btnDeleteSelected.ConfirmText   = String.Format("确定要删除选中的<span class=\"highlight\"><script>{0}</script></span>项记录吗?", Grid1.GetSelectedCountReference());
                btnDeleteSelected.ConfirmTarget = FineUIPro.Target.Top;

                //绑定表格
                BindGrid();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //从配置文件中获取明细信息框高度
                tsDetail.Height          = int.Parse(ConfigurationManager.AppSettings["TabStripHight"]);
                btnCancel.ConfirmText    = "确定要取消当前收货单信息吗?";
                btnSaveClose.ConfirmText = "确定正式提交收货单信息吗,提交后不能再修改?";
                // 删除选中单元格的客户端脚本
                btnDeleteSelected.OnClientClick = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
                btnDeleteSelected.ConfirmText   = String.Format("确定要删除选中的<span class=\"highlight\"><script>{0}</script></span>项记录吗?", Grid1.GetSelectedCountReference());
                btnDeleteSelected.ConfirmTarget = FineUIPro.Target.Top;
                //根据结算单计算单据录入限制日期
                CalcOrderDate();
                //绑定合同信息
                BindContractInfo();
                //判断是否有传入的订单编号,没有为新增订单
                if (OrderID <= 0)
                {
                    //生成订单信息
                    CreateOrderInfo();
                }
                else
                {
                    GetOrderInfo();
                }

                btnNew.OnClientClick = Window1.GetShowReference(string.Format("~/PublicWebForm/OrderSaleSelectDialog.aspx?rowid={0}", OrderNO), "添加收货物品");
                //获取订单收货材料各项明细
                BindOrderDetail();
            }
        }
Example #3
0
 private void Inits()
 {
     btnEnableUsers.OnClientClick  = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
     btnEnableUsers.ConfirmText    = String.Format("确定要启用选中的<span class=\"highlight\"><script>{0}</script></span>项记录吗?", Grid1.GetSelectedCountReference());
     btnEnableUsers.ConfirmTarget  = FineUIPro.Target.Top;
     btnDisableUsers.OnClientClick = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
     btnDisableUsers.ConfirmText   = String.Format("确定要停用选中的<span class=\"highlight\"><script>{0}</script></span>项记录吗?", Grid1.GetSelectedCountReference());
     btnDisableUsers.ConfirmTarget = FineUIPro.Target.Top;
 }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnNew.OnClientClick = Window1.GetShowReference(string.Format("~/PublicWebForm/GoodSelectDialog.aspx?rowid={0}", DishesID), "添加配料");
                // 删除选中单元格的客户端脚本
                btnDeleteSelected.OnClientClick = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
                btnDeleteSelected.ConfirmText   = String.Format("确定要删除选中的<span class=\"highlight\"><script>{0}</script></span>项配料记录吗?", Grid1.GetSelectedCountReference());
                btnDeleteSelected.ConfirmTarget = FineUIPro.Target.Top;

                // 绑定表格
                BindGrid();
                //绑定菜品信息
                BindDishesInfo();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CheckPowerWithButton("CoreEquipmentEdit", btnNew);

                btnNew.OnClientClick = Window1.GetShowReference(string.Format("~/Equipment/EquipmentAssortSelectDialog.aspx?rowid={0}&type={1}", DishesID, TypeID), "添加配套物品");
                // 删除选中单元格的客户端脚本
                btnDeleteSelected.OnClientClick = Grid1.GetNoSelectionAlertInParentReference("请至少应该选择一项记录!");
                btnDeleteSelected.ConfirmText   = String.Format("确定要删除选中的<span class=\"highlight\"><script>{0}</script></span>项配料记录吗?", Grid1.GetSelectedCountReference());
                btnDeleteSelected.ConfirmTarget = FineUIPro.Target.Top;
                if (TypeID == 2)
                {
                    btnUpdate.Hidden = true;
                }
                // 绑定表格
                BindGrid();
                //绑定菜品信息
                BindDishesInfo();
            }
        }