Beispiel #1
0
 protected void GVProductSpecification_OnUpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e)
 {
     /*
      * if (hdnprodID.Value != null)
      * {
      *  int Spcid = Convert.ToInt32(e.Record["ID"].ToString());
      *  var prodspec = (from c in productClient.GetProductSpecificationDetailsByProdSpecID(Spcid, profile.DBConnection._constr)
      *                  select c).ToList();
      *  foreach (var v in prodspec)
      *  {
      *      mProductSpecificationDetail oprodspec = new mProductSpecificationDetail();
      *      oprodspec.ID = v.ID;
      *      oprodspec.SpecificationTitle = e.Record["SpecificationTitle"].ToString();
      *      oprodspec.SpecificationDescription = e.Record["SpecificationDescription"].ToString();
      *      oprodspec.Active = v.Active;
      *      oprodspec.ProductID = v.ProductID;
      *      oprodspec.CreatedBy = v.CreatedBy;
      *      oprodspec.CreationDate = v.CreationDate;
      *      oprodspec.LastModifiedBy = profile.Personal.UserID.ToString(); //need to change
      *      oprodspec.LastModifiedDate = DateTime.Now;
      *      oprodspec.CompanyID = v.CompanyID;
      *      int upprodsperesult = productClient.UpdatemProductSpecificationDetail(oprodspec, profile.DBConnection._constr);
      *      if (upprodsperesult > 0)
      *      {
      *          pop.DisplayPopupMessage(this, "Record Updated sucessfully.", PopupMessages.PopupMessage.AlertType.Error);
      *          //bindGVProductSpecification();
      *      }
      *      else
      *      {
      *          pop.DisplayPopupMessage(this, "Error while updating record! Please try latter.", PopupMessages.PopupMessage.AlertType.Error);
      *      }
      *  }
      * }*/
 }
Beispiel #2
0
 protected void GVProductSpecification_OnDeleteCommand(object sender, Obout.Grid.GridRecordEventArgs e)
 {
     /*
      * if (hdnprodID.Value != null)
      * {
      *  int Spcid = Convert.ToInt32(e.Record["ID"].ToString());
      *  var prodspec = (from c in productClient.GetProductSpecificationDetailsByProdSpecID(Spcid, profile.DBConnection._constr)
      *                  select c).ToList();
      *  foreach (var v in prodspec)
      *  {
      *      PowerOnRentwebapp.ProductService.mProductSpecificationDetail oprodspec = new PowerOnRentwebapp.ProductService.mProductSpecificationDetail();
      *      oprodspec.ID = v.ID;
      *      oprodspec.SpecificationTitle = e.Record["SpecificationTitle"].ToString();
      *      oprodspec.SpecificationDescription = e.Record["SpecificationDescription"].ToString();
      *      oprodspec.Active = v.Active;
      *      oprodspec.ProductID = v.ProductID;
      *      oprodspec.CreatedBy = v.CreatedBy;
      *      oprodspec.CreationDate = v.CreationDate;
      *      oprodspec.LastModifiedBy = profile.Personal.UserID.ToString(); //need to change
      *      oprodspec.LastModifiedDate = DateTime.Now;
      *      oprodspec.CompanyID = v.CompanyID;
      *      int upprodsperesult = productClient.DeletemProductSpecificationDetail(oprodspec, profile.DBConnection._constr);
      *  }
      * }*/
 }
Beispiel #3
0
 protected void GvCustomer_Select(object sender, Obout.Grid.GridRecordEventArgs e)
 {
     try
     {
         CustomProfile   profile = CustomProfile.GetProfile();
         iCustomerClient ServiceAccountMaster = new iCustomerClient();
         tCustomerHead   objCutomerHead       = new tCustomerHead();
         clr();
         Hashtable selectedrec = (Hashtable)GvCustomer.SelectedRecords[0];
         HdnAccountId.Value = selectedrec["ID"].ToString();
         GetVendorDetailByID();
         GetVendorOpeningBal();
         GetVendorRatecard();
         Session.Add("PORRequestID", "Company");
         FillUserControl(Convert.ToInt64(HdnAccountId.Value));
         ActiveTab("Edit");
     }
     catch (System.Exception ex)
     {
         Login.Profile.ErrorHandling(ex, this, "Account Master", "GvCustomer_Select");
     }
     finally
     {
     }
 }
Beispiel #4
0
    protected void gridCPT_InsertCommand(object sender, Obout.Grid.GridRecordEventArgs e)
    {
        SQL_utils sql = new SQL_utils();

        sql.NonQuery_from_SQLstring("insert into ac.enumCPT(CPTcode, servicetypeID, isVisit)" +
                                    " values('" + e.Record["CPTcode"].ToString() + "'," + e.Record["ServiceTypeID"].ToString() + "," + e.Record["isVisit"].ToString() + ")");

        sql.Close();
    }
 protected void gridOtherID_UpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e)
 {
     try
     {
         string          x = "";
         oboutGrid_utils o = new oboutGrid_utils();
         x = o.oGrid_UpdateData(e.Record, "tblOtherID", "backend", "dbo", "otherID_pk");
     }
     catch (Exception) { }
 }
Beispiel #6
0
 protected void gridOnSelect(object sender, Obout.Grid.GridRecordEventArgs e)
 {
     if (grid.SelectedRecords != null && grid.SelectedRecords.Count == 1)
     {
         var rowvalues = (Hashtable)grid.SelectedRecords[0];
         var id        = Convert.ToInt32(rowvalues["UId"]);
         this.SelectedUId = id;
         if (Selected != null)
         {
             Selected(this, id);
         }
     }
 }
Beispiel #7
0
    protected void OpenProspectiveStudentData(object sender, Obout.Grid.GridRecordEventArgs e)
    {
        string lStudentId = "";

        if (grdSearchResultProspective.SelectedRecords != null)
        {
            foreach (Hashtable oRecord in grdSearchResultProspective.SelectedRecords)
            {
                lStudentId = oRecord["StudentId"].ToString();
            }

            Response.Redirect("/DefaultAddStudent.aspx?ID=" + lStudentId);
        }
    }
        //protected void GridRoleMaster_Select(object sender, Obout.Grid.GridRecordEventArgs e)
        //{

        //    try
        //    {
        //        clear();

        //        Hashtable selectedrec = (Hashtable)GridRoleMaster.SelectedRecords[0];

        //        hdnRoleID.Value = selectedrec["mrID"].ToString();
        //        txtRoleName.Text = selectedrec["RoleName"].ToString();
        //       // txtSequence.Text = selectedrec["mrSequence"].ToString();
        //        if (selectedrec["Active"].ToString() == "Yes") { rbtnYes.Checked = true; rbtnNo.Checked = false; }
        //        else { rbtnNo.Checked = true; rbtnYes.Checked = false; }

        //        if (ddlDeartment.Items.Count <= 1) FillDepartment();
        //        ddlDeartment.SelectedIndex = ddlDeartment.Items.IndexOf(ddlDeartment.Items.FindByValue(selectedrec["DepartmentID"].ToString()));
        //        FillDesignation();
        //        ddlDesignation.SelectedIndex = ddlDesignation.Items.IndexOf(ddlDesignation.Items.FindByValue(selectedrec["DesignationID"].ToString()));
        //        BindRoleDetailsGridView(Convert.ToInt32(hdnRoleID.Value));
        //        //TabContainerRoleMaster.ActiveTabIndex = 1;
        //        setActiveTab(1);
        //        this.UCToolbar1.ToolbarAccess("RoleMaster", "btnEdit");
        //    }
        //    catch (System.Exception ex)
        //    {
        //        Login.Profile.ErrorHandling(ex, this, "Role Master", "GridRoleMaster_Select");

        //    }
        //    finally
        //    {
        //    }
        //}

        protected void GridRoleMaster_Select(object sender, Obout.Grid.GridRecordEventArgs e)
        {
            try
            {
                clear();
                getrolebyID();
                setActiveTab(1);
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "Role Master", "GridRoleMaster_Select");
            }
            finally
            {
            }
        }
Beispiel #9
0
        protected void GvCustomer_Select(object sender, Obout.Grid.GridRecordEventArgs e)
        {
            this.UCToolbar1.ToolbarAccess("Edit");
            Hashtable selectedrec = (Hashtable)grdWarehouseList.SelectedRecords[0];

            btncustomernext.Visible = false;
            hdnwarehouseID.Value    = selectedrec["ID"].ToString();
            hdnNewCustomerID.Value  = selectedrec["ID"].ToString();
            long reuslt = long.Parse(hdnwarehouseID.Value);

            GetWarehouseDetailByID();
            GetWarehouseAddress();
            FillUserControl(reuslt);
            FillLocationGrid(reuslt);
            hdnstate.Value = "Edit";
            ActiveTab("Edit");
        }
Beispiel #10
0
        protected void GVProductSpecification_InsertRecord(object sender, Obout.Grid.GridRecordEventArgs e)
        {
            CustomProfile profile = CustomProfile.GetProfile();
            mProductSpecificationDetail oprodspec = new mProductSpecificationDetail();

            oprodspec.SpecificationTitle       = e.Record["SpecificationTitle"].ToString();
            oprodspec.SpecificationDescription = e.Record["SpecificationDescription"].ToString();
            oprodspec.Active       = "Y";
            oprodspec.ProductID    = Convert.ToInt32(hdnprodID.Value);
            oprodspec.CreatedBy    = profile.Personal.UserID.ToString(); //need to change
            oprodspec.CreationDate = DateTime.Now;
            oprodspec.CompanyID    = profile.Personal.CompanyID;         // need to change
            //int upprodsperesult = productClient.InserttProductSpecificationDetail(oprodspec, profile.DBConnection._constr);
            iProductMasterClient productClient = new iProductMasterClient();

            productClient.AddProductSpecificationToTempData(oprodspec, Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr);
            productClient.Close();
        }
Beispiel #11
0
    protected void gridCPT_UpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e)
    {
        string x = "";

        if (e.RecordsCollection != null)
        {
            foreach (Hashtable rec in e.RecordsCollection)
            {
                oboutGrid_utils o = new oboutGrid_utils();
                x = o.oGrid_UpdateData(rec, "enumCPT", "backend", "ac", "pk");
            }
        }
        else if (e.Record != null)
        {
            oboutGrid_utils o = new oboutGrid_utils();
            x = o.oGrid_UpdateData(e.Record, "enumCPT", "backend", "ac", "pk");
        }
    }
Beispiel #12
0
    protected void GridTxType_UpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e)
    {
        string x = "";

        if (e.RecordsCollection != null)
        {
            foreach (Hashtable rec in e.RecordsCollection)
            {
                oboutGrid_utils o = new oboutGrid_utils();
                x = o.oGrid_UpdateData(rec, "const_MIND_IntHXv2_TxType", "data", "dbo", "txtypeID");
            }
        }
        else if (e.Record != null)
        {
            oboutGrid_utils o = new oboutGrid_utils();
            x = o.oGrid_UpdateData(e.Record, "const_MIND_IntHXv2_TxType", "data", "dbo", "txtypeID");
        }

        lblInfo.Text = x;
    }
        protected void Gvlocation_Select(object sender, Obout.Grid.GridRecordEventArgs e)
        {
            try
            {
                CustomProfile profile     = CustomProfile.GetProfile();
                Hashtable     selectedrec = (Hashtable)Gvlocation.SelectedRecords[0];

                hdnselectedLocation.Value = selectedrec["ID"].ToString();
                hdnmodestate.Value        = "Edit";
                locationDetails(long.Parse(hdnselectedLocation.Value));
                ActiveTab("Edit");
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "Account Master", "GvCustomer_Select");
            }
            finally
            {
            }
        }
Beispiel #14
0
        protected void grdratecard_Select(object sender, Obout.Grid.GridRecordEventArgs e)
        {
            try
            {
                clr();
                CustomProfile profile     = CustomProfile.GetProfile();
                Hashtable     selectedrec = (Hashtable)grdratecard.SelectedRecords[0];
                hdnratecardId.Value = selectedrec["ID"].ToString();
                hndState.Value      = "Edit";
                GetRateCardByID(long.Parse(hdnratecardId.Value));

                ActiveTab("Edit");
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "Account Master", "GvCustomer_Select");
            }
            finally
            {
            }
        }
Beispiel #15
0
 protected void gridServiceType_InsertCommand(object sender, Obout.Grid.GridRecordEventArgs e)
 {
 }