private void UpdateRecords() { A2ZPARTYDTO objDTO = new A2ZPARTYDTO(); objDTO.GroupCode = Converter.GetInteger(ddlGroup.SelectedValue); objDTO.GroupName = Converter.GetString(ddlGroup.SelectedItem.Text); objDTO.PartyCode = Converter.GetInteger(lblNewLPartyNo.Text); objDTO.PartyName = Converter.GetString(txtPartyName.Text); objDTO.PartyAddresss = Converter.GetString(txtPartyAddress.Text); objDTO.PartyMobileNo = Converter.GetString(txtPartyPhone.Text); objDTO.PartyEmail = Converter.GetString(txtPartyEmail.Text); if (ddlGroup.SelectedValue == "12") { objDTO.PartyPurchaseCode = Converter.GetInteger(ddlPurchasePartyName.SelectedValue); objDTO.PartySalesCode = Converter.GetInteger(ddlSalesPartyName.SelectedValue); } else { objDTO.PartyPurchaseCode = Converter.GetInteger(0); objDTO.PartySalesCode = Converter.GetInteger(0); } int roweffect = A2ZPARTYDTO.InsertInformation(objDTO); if (roweffect > 0) { Response.Redirect(Request.RawUrl); } }
private void UpdateRecords() { A2ZPARTYDTO objDTO = new A2ZPARTYDTO(); objDTO.GroupCode = Converter.GetInteger(ddlGroup.SelectedValue); objDTO.GroupName = Converter.GetString(ddlGroup.SelectedItem.Text); objDTO.PartyCode = Converter.GetInteger(lblnewPartyNo.Text); objDTO.PartyName = Converter.GetString(txtPartyName.Text); objDTO.PartyAddresssLine1 = Converter.GetString(txtPartyAddress.Text); objDTO.PartyMobileNo = Converter.GetString(txtMobileNo.Text); objDTO.PartyEmail = Converter.GetString(txtPartyEmail.Text); int roweffect = A2ZPARTYDTO.InsertInformation(objDTO); if (roweffect > 0) { Response.Redirect(Request.RawUrl); } }
private void UpdateRecords() { A2ZPARTYDTO objDTO = new A2ZPARTYDTO(); objDTO.GroupCode = Converter.GetInteger(ddlGroup.SelectedValue); objDTO.GroupName = Converter.GetString(ddlGroup.SelectedItem.Text); objDTO.PartyCode = Converter.GetInteger(lblNewLPartyNo.Text); //objDTO.PartyAccNo = Converter.GetLong(ctrlNewAccNo.Text); objDTO.PartyName = Converter.GetString(txtPartyName.Text); objDTO.PartyAddresssLine1 = Converter.GetString(txtPartyAddressL1.Text); objDTO.PartyAddresssLine2 = Converter.GetString(txtPartyAddressL2.Text); objDTO.PartyAddresssLine3 = Converter.GetString(txtPartyAddressL3.Text); objDTO.PartyMobileNo = Converter.GetString(txtMobileNo.Text); objDTO.PartyEmail = Converter.GetString(txtPartyEmail.Text); objDTO.PartyCarringRate = Converter.GetDecimal(txtCarringRate.Text); int roweffect = A2ZPARTYDTO.InsertInformation(objDTO); if (roweffect > 0) { UpdatedMSG(); //DivLedgerMaint.Visible = false; //DivMain.Attributes.CssStyle.Add("opacity", "300"); ClearRecords(); txtPartyName.Focus(); //Response.Redirect(Request.RawUrl); } }