Пример #1
0
    //
    //Display empty content panel to allow entry of new RepMaster data
    //
    protected void ibtnAdd_Click(object sender, ImageClickEventArgs e)
    {
        ViewState["Mode"] = "Add";
        lblSearch.Text    = "";
        lblMessage.Text   = "";
        pnlStatus.Update();

        tblContent.Visible = true;
        txtRepNo.Enabled   = true;
        tblFooter.Visible  = true;
        ClearControls();
        MaintUtil.ReleaseLock("RepMaster", Session["RepID"].ToString(), "Rep", Session["RepLockStatus"].ToString());
        smRepMaster.SetFocus(ddlLocation);
    }
Пример #2
0
        protected void tvGroups_SelectedNodeChanged(object sender, EventArgs e)
        {
            Maint.ReleaseLock("SecurityGroups", Session["SecRecID"].ToString(), "Sec", Session["SecLockStatus"].ToString());

            hidMode.Value  = "Edit";
            whereCondition = " AND pSecGroupID = " + tvGroups.SelectedNode.Value.ToString();
            dtGroups       = Groups.GetGroups(whereCondition);

            if (dtGroups != null && dtGroups.Rows.Count > 0)
            {
                hidDupCheck.Value = "false";
                ShowGroupInfo();
            }
        }
Пример #3
0
    public void btnAdd_Click(object sender, ImageClickEventArgs e)
    {
        WebCatDisc.ReleaseLock("WebCategoryDiscount", Session["WCDRecID"].ToString(), "WCD", Session["WCDLockStatus"].ToString());

        hidEditMode.Value = "Add";

        divdatagrid.Attributes["style"] = "overflow: auto; width: 1020px; position: relative; top: 0px; left: 0px; height: 287px; border: 0px solid; vertical-align: top;";
        //dgWebCatDisc.PageSize = 10;
        //hidPageSize.Value = "10";
        //BindDataGrid();
        //pnlPager.Update();

        ContentTable.Visible = true;
        btnSave.Visible      = true;
        btnCancel.Visible    = true;

        txtCat.Text                   = "";
        txtCat.Enabled                = true;
        lblCatDesc.Text               = "";
        ddlItemCVC.SelectedIndex      = 0;
        ddlItemCVC.Enabled            = true;
        txtDisc.Text                  = "";
        dtEffectiveStart.SelectedDate = "";
        dtEffectiveEnd.SelectedDate   = "";

        txtCat.Focus();
        hidFocus.Value = "txtCat";

        UpdatePanels();
    }
Пример #4
0
    public void btnAdd_Click(object sender, ImageClickEventArgs e)
    {
        freightAddr.ReleaseLock("FreightAdder", Session["FAMRecID"].ToString(), "FAM", Session["FAMLockStatus"].ToString());

        hidEditMode.Value = "Add";

        ContentTable.Visible = true;
        btnSave.Visible      = true;
        btnCancel.Visible    = true;

        ddlFromLocEdit.SelectedIndex = 0;
        ddlFromLocEdit.Enabled       = true;
        lblFromAddress.Text          = "";
        ddlToLocEdit.SelectedIndex   = 0;
        ddlToLocEdit.Enabled         = true;
        lblToAddress.Text            = "";
        txtLTL.Text      = "";
        txtLineHaul.Text = "";
        //hidCheckLoc.Value = "No";

        UpdatePanels();
    }
Пример #5
0
 public void ReleaseLock()
 {
     BuyGroupMaint.ReleaseLock("CategoryBuyGroups", Session["CatID"].ToString(), "CBG", Session["CatBuyGrpLock"].ToString());
 }
Пример #6
0
 public void ReleaseLock()
 {
     Notes.ReleaseLock("ItemNotes", Session["IMNoteID"].ToString(), "IMN", Session["IMNLockStatus"].ToString());
 }
Пример #7
0
 public void ReleaseLock()
 {
     CustContMaint.ReleaseLock("CustomerMaster", Session["CustID"].ToString(), "CM", Session["CustContLock"].ToString());
 }