protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { CustomProfile profile = CustomProfile.GetProfile(); iCompanySetupClient aggregator = new iCompanySetupClient(); mAgreegator aggree = new mAgreegator(); if (hdnState.Value == "Edit") { aggree = aggregator.GetAggregatorMasterbyID(long.Parse(hdnselectedAggID.Value), profile.DBConnection._constr); } aggree.AgreegatorName = txtaggregator.Text; aggree.ContactPersonName = txtcontactperson.Text; aggree.EmailID = txtemail.Text; aggree.MobileNo = long.Parse(txtmobno.Text); aggree.Active = "Yes"; if (rbtnActiveNo.Checked == true) { aggree.Active = "No"; } aggree.CompanyID = long.Parse(hdnCompanyid.Value); aggree.CustomerID = long.Parse(hdncustomerid.Value); if (hdnState.Value == "Edit") { aggree.ModifiedBy = profile.Personal.UserID; aggree.ModifiedDate = DateTime.Now; long AggreeID = aggregator.SaveAggregatorMaster(aggree, profile.DBConnection._constr); } BindAgregatorGridMain(); setActiveTab(0); }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { FillCompany(); clear(); btncustomernext.Visible = true; ActiveTab("Add"); }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clr(); hdnmodestate.Value = "AddNew"; hdnselectedLocation.Value = "0"; ActiveTab("Add"); }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clear(); setActiveTab(1); ddlWarehouse.Enabled = true; UC_FromDate.EnableTheming = true; ddlcountbasis.Enabled = true; }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { iCompanySetupClient CompanyClient = new iCompanySetupClient(); try { CustomProfile profile = CustomProfile.GetProfile(); mChannel Channel = new mChannel(); if (hdnState.Value == "Edit") { Channel = CompanyClient.GetChannelByChanID(long.Parse(hdnselectedchanID.Value), profile.DBConnection._constr); } Channel.ChannelName = txtchannelname.Text; Channel.ChannelURL = txtchanlUrl.Text; Channel.UserName = txtusername.Text; Channel.Password = txtpassword.Text; Channel.TypeID = long.Parse(ddlchantype.SelectedItem.Value); if (hdnchannelid.Value != "") { Channel.StandardChannelID = long.Parse(hdnchannelid.Value); } if (hndCompanyid.Value != "") { Channel.CompanyID = long.Parse(hndCompanyid.Value); } Channel.CustomerID = long.Parse(hdncustomerid.Value); Channel.Active = "Yes"; if (rbtnActiveYes.Checked != true) { Channel.Active = "No"; } if (hdnState.Value == "Edit") { Channel.ModifiedBy = profile.Personal.UserID; Channel.ModifiedDate = DateTime.Today; long channelid = CompanyClient.SaveChannelDetail(Channel, profile.DBConnection._constr); } else { Channel.CreatedBy = profile.Personal.UserID; Channel.CreationDate = DateTime.Now; long channelid = CompanyClient.SaveChannelDetail(Channel, profile.DBConnection._constr); } WebMsgBox.MsgBox.Show("Record saved successfully"); WarehouseGridBind(); clear(); setActiveTab(0); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Channel Master", "Save"); } finally { CompanyClient.Close(); } }
protected void pageClear(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { //if (hndstate.Value == "Edit") //{ // GetUserByID(); //} //else //{ ClearAll(); // FillRoleDropDown(); // ResetUserControl(0); //} }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { tblInterfaceDefLst.Visible = false; tbTemplateDetail.Visible = true; tabContainerReqTemplate.ActiveTabIndex = 1; //clear(); //GetProductSpecificationDetailByProductID(); //GetProductTaxDetailByProductID(); //GetProductImagesByProductID(); //GVRateHistory(); //FillInventoryGrid(); //setActiveTab(1); //changePrice1.Attributes.Add("style", "visibility:hidden"); }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { try { string result = ""; CustomProfile profile = CustomProfile.GetProfile(); iSiteMasterClient InterfaceClient = new iSiteMasterClient(); if (checkDuplicate() == "") { string Tablename = ddlTable.SelectedItem.Text; string DataType = ddlDataype.SelectedItem.Text; string FieldName = txtFieldName.Text; string IsNull = ddlIsNull.SelectedItem.Text; if (hdnInterfaceID.Value != "0" && hdnInterfaceID.Value != "") { DataSet ds = new DataSet(); long ModifyBy = Convert.ToInt64(profile.Personal.UserID.ToString()); hdnSate.Value = "Edit"; InterfaceClient.UpdateInterface(Convert.ToInt64(hdnInterfaceID.Value), Tablename, DataType, FieldName, IsNull, ModifyBy, profile.DBConnection._constr); } else { hdnSate.Value = "AddNew"; long CreatedBy = Convert.ToInt64(profile.Personal.UserID.ToString()); InterfaceClient.InsertInterface(Tablename, DataType, FieldName, IsNull, CreatedBy, profile.DBConnection._constr); } if (hdnSate.Value == "Edit") { WebMsgBox.MsgBox.Show("Record Update sussessfully"); ClearAll(); } if (hdnSate.Value == "AddNew") { WebMsgBox.MsgBox.Show("Record saved sussessfully"); ClearAll(); } } } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Product master", "pageSave"); } finally { } }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { CustomProfile profile = CustomProfile.GetProfile(); iCompanySetupClient ratecardclient = new iCompanySetupClient(); mRateCard RateCard = new mRateCard(); if (hndState.Value == "Edit") { RateCard = ratecardclient.GetRateCardByID(long.Parse(hdnratecardId.Value), profile.DBConnection._constr); } RateCard.Type = ddlaccounttypeer.SelectedItem.Text; RateCard.RateDetails = txtratetitle.Text; RateCard.Rate = decimal.Parse(txtprice.Text); RateCard.FromDate = UC_Startdt.Date; RateCard.ToDate = UC_enddt.Date; RateCard.EffDate = UC_effectivedt.Date; RateCard.CompanyID = long.Parse(ddlgroupcompany.SelectedItem.Value); RateCard.RateType = long.Parse(ddlratetype.SelectedItem.Value); RateCard.AccountID = long.Parse(hdnAccountID.Value); RateCard.Remark = txtremark.Text; RateCard.AccountName = hdnAccountName.Value; RateCard.Active = "Yes"; if (rbtnActiveNo.Checked == true) { RateCard.Active = "No"; } if (hndState.Value == "Edit") { RateCard.ModifiedBy = profile.Personal.UserID; RateCard.ModifiedDate = DateTime.Now; long ratecardID = ratecardclient.SaveRateCardMaster(RateCard, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Updated Successfully"); } else { RateCard.CreatedBy = profile.Personal.UserID; RateCard.CreationDate = DateTime.Now; long ratecardID = ratecardclient.SaveRateCardMaster(RateCard, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Saved Successfully"); } clr(); MainRateCardGrid(); ActiveTab("Load"); }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { iProductCategoryMasterClient Message = new iProductCategoryMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); tblInterfaceDefLst.Visible = false; tbTemplateDetail.Visible = true; tabContainerReqTemplate.ActiveTabIndex = 1; hdnState.Value = "Add"; if (hdnState.Value == "Add") { Message.DeleteMessageTemptable(profile.DBConnection._constr); } clear(); //GetProductSpecificationDetailByProductID(); //GetProductTaxDetailByProductID(); //GetProductImagesByProductID(); //GVRateHistory(); //FillInventoryGrid(); //setActiveTab(1); //changePrice1.Attributes.Add("style", "visibility:hidden"); }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { CustomProfile profile = CustomProfile.GetProfile(); iCycleCountClient cycleclient = new iCycleCountClient(); tCycleCountHead cycleH = new tCycleCountHead(); DataSet ds = new DataSet(); if (hdnCycleheadID.Value != "") { cycleH.ID = long.Parse(hdnCycleheadID.Value); cycleH.Title = txtTitle.Text.ToString(); cycleH.Status = ddlstatus.SelectedItem.Text; cycleH.CountBasis = ddlcountbasis.SelectedItem.Text; cycleH.CycleCountDate = UC_FromDate.Date; cycleH.WarehouseID = long.Parse(hdnwarehouseId.Value); cycleH.Frequency = hdnfrequency.Value; cycleH.CreatedBy = profile.Personal.UserID; cycleH.CreationDate = DateTime.Now; cycleH.Active = "Yes"; if (rbtnActiveNo.Checked == true) { cycleH.Active = "No"; } ds = cycleclient.getCompanyCustomer(long.Parse(hdnwarehouseId.Value), profile.DBConnection._constr); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { cycleH.CompanyID = long.Parse(ds.Tables[0].Rows[0]["CompanyID"].ToString()); cycleH.CustomerID = long.Parse(ds.Tables[0].Rows[0]["CustomerID"].ToString()); } long CycleHeadID = cycleclient.SaveCycleCountHead(cycleH, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record saved successfully"); clear(); BindCycleMainGrid(); Response.Redirect("CycleCount.aspx"); } }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clr(); ActiveTab("Add"); }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { try { CustomProfile profile = CustomProfile.GetProfile(); mEngine objEngine = new mEngine(); iEngineMasterClient EngineClient = new iEngineMasterClient(); if (hdnEngineId.Value != "") { v_GetEngineDetails obj = new v_GetEngineDetails(); obj = EngineClient.GetmEngineListByID(Convert.ToInt32(hdnEngineId.Value), profile.DBConnection._constr); objEngine.CreatedBy = obj.CreatedBy; objEngine.CreationDate = obj.CreationDate; } else { objEngine.LastModifiedBy = profile.Personal.UserID.ToString(); objEngine.LastModifiedDate = DateTime.Now; } if (ddlSite.SelectedIndex > 0) { objEngine.SiteID = Convert.ToInt32(ddlSite.SelectedItem.Value); } objEngine.Container = null; if (txtContainer.Text.ToString().Trim() != "") { objEngine.Container = txtContainer.Text.ToString(); } objEngine.GeneratorModel = null; if (txtGenratorModel.Text.ToString().Trim() != "") { objEngine.GeneratorModel = txtGenratorModel.Text.ToString(); } objEngine.GeneratorSerial = null; if (txtGenratorSerialNo.Text.ToString().Trim() != "") { objEngine.GeneratorSerial = txtGenratorSerialNo.Text.ToString(); } objEngine.EngineModel = null; if (txtEngineModel.Text.ToString().Trim() != "") { objEngine.EngineModel = txtEngineModel.Text.ToString(); } objEngine.EngineSerial = null; if (txtEngineSerialNo.Text.ToString().Trim() != "") { objEngine.EngineSerial = txtEngineSerialNo.Text.ToString(); } objEngine.EngineSerial = null; if (txtEngineSerialNo.Text.ToString().Trim() != "") { objEngine.EngineSerial = txtEngineSerialNo.Text.ToString(); } objEngine.TransformerSerial = null; if (txtTransformerSerialNo.Text.ToString().Trim() != "") { objEngine.TransformerSerial = txtTransformerSerialNo.Text.ToString(); } if (UC_DateRecived.Date != null) { objEngine.DateRecevied = Convert.ToDateTime(UC_TrasformerDateRecv.Date); } if (UC_TrasformerDateRecv.Date != null) { objEngine.TransformerDateRecevied = Convert.ToDateTime(UC_DateRecived.Date); } objEngine.Remark = null; if (txtRemark.Text.ToString().Trim() != "") { objEngine.Remark = txtRemark.Text.ToString(); } if (hdnEngineId.Value == string.Empty) { objEngine.CreatedBy = profile.Personal.UserID.ToString(); objEngine.CreationDate = DateTime.Now; int result = EngineClient.InsertmEngine(objEngine, profile.DBConnection._constr); if (result == 1) { WebMsgBox.MsgBox.Show("Record saved successfully"); } } else { objEngine.ID = Convert.ToInt64(hdnEngineId.Value); objEngine.LastModifiedBy = profile.Personal.UserID.ToString(); objEngine.LastModifiedDate = DateTime.Now; int result = EngineClient.updatemEngine(objEngine, profile.DBConnection._constr); if (result == 1) { WebMsgBox.MsgBox.Show("Record Update successfully"); } } BindGrid(); clear(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Site Master", "pageSave"); } finally { } }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { if (checkDuplicate() == "") { try { CustomProfile profile = CustomProfile.GetProfile(); mDepartment ObjDepartment = new mDepartment(); if (hdnDepartmentID.Value == string.Empty) { ObjDepartment.Name = txtDepartment.Text; if (txtSequence.Text != string.Empty) { ObjDepartment.Sequence = Convert.ToInt64(txtSequence.Text); } else { ObjDepartment.Sequence = 0; } if (rbtnYes.Checked == true) { ObjDepartment.Active = "Y"; } else { ObjDepartment.Active = "N"; } ObjDepartment.CreatedBy = profile.Personal.UserID.ToString(); ObjDepartment.CreationDate = DateTime.Now; ObjDepartment.CompanyID = long.Parse(ddlcompanymain.SelectedItem.Value); ObjDepartment.CustomerID = long.Parse(hdncustomerid.Value); ObjDepartment.DeptCode = txtstorecode.Text; int result = DepartmentClient.InsertmDepartment(ObjDepartment, profile.DBConnection._constr); if (result == 1) { WebMsgBox.MsgBox.Show("Record saved successfully"); } BindGrid(); clear(); } else { ObjDepartment = DepartmentClient.GetDepartmentListByID(Convert.ToInt32(hdnDepartmentID.Value), profile.DBConnection._constr); ObjDepartment.Name = txtDepartment.Text; if (txtSequence.Text != string.Empty) { ObjDepartment.Sequence = Convert.ToInt64(txtSequence.Text); } else { ObjDepartment.Sequence = 0; } if (rbtnYes.Checked == true) { ObjDepartment.Active = "Y"; } else { ObjDepartment.Active = "N"; } ObjDepartment.LastModifiedBy = profile.Personal.UserID.ToString(); ObjDepartment.LastModifiedDate = DateTime.Now; ObjDepartment.CompanyID = long.Parse(ddlcompanymain.SelectedItem.Value); ObjDepartment.CustomerID = long.Parse(hdncustomerid.Value); ObjDepartment.DeptCode = txtstorecode.Text; int result = DepartmentClient.updatemDepartment(ObjDepartment, profile.DBConnection._constr); if (result == 1) { WebMsgBox.MsgBox.Show("Record updated successfully"); } BindGrid(); clear(); } } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Department Master", "pageSave"); } finally { } } }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { CustomProfile profile = CustomProfile.GetProfile(); BrilliantWMS.CompanySetupService.iCompanySetupClient CompanyClient = new BrilliantWMS.CompanySetupService.iCompanySetupClient(); try { long locationid = 0; long companyid = long.Parse(hdnSelectedCompany.Value); long deptid = 0; locationid = long.Parse(hdnselectedLocation.Value); string hdnstate = hdnmodestate.Value; string locationCode = txtlocation.Text; string address1 = txtCAddress1.Text; string address2 = txtAddress2.Text; string city = txtCity.Text; string zipcode = txtZipCode.Text; string landmark = txtLandMark.Text; string faxno = txtFax.Text; //string contactName = txtname.Text; string contactName = hdnSearchContactName1.Value; // string email = txtemailid.Text; string email = hdnSearchConEmail.Value; string Locationname = txtlocationName.Text; long ContactID = long.Parse(hdnSearchContactID1.Value); long MobileNo = 0; if (hdnSearchConMobNo.Value != "") { MobileNo = long.Parse(hdnSearchConMobNo.Value); } string Mobilecont = txtphoneno.Text; string Country = hdnCountry.Value; string State = hdnState.Value; string userid = profile.Personal.UserID.ToString(); string active = "N"; if (rbtnActiveYes.Checked == true) { active = "Y"; } if (hdnstate == "AddNew") { //long ContactID = CompanyClient.SaveLocContactInContact("Contact", companyid, 0, 1, contactName, email, Mobilecont, 4, "Y", userid, DateTime.Now, companyid, profile.DBConnection._constr); CompanyClient.SaveEditLocation(locationid, companyid, deptid, locationCode, address1, address2, Country, State, city, zipcode, landmark, faxno, active, contactName, email, Locationname, MobileNo, userid, DateTime.Now, hdnstate, ContactID, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Saved successfully"); } else { long contactIdUpdate = CompanyClient.GetContactIdasShippingId(locationid, profile.DBConnection._constr); if (active == "N") { int totaluser = CompanyClient.CheckLocationIDForAssignedUser(locationid, profile.DBConnection._constr); if (totaluser == 1) { WebMsgBox.MsgBox.Show("Location is assigned for user Please remove the location for that user"); // rbtnActiveNo.Text = ""; rbtnActiveNo.Checked = false; rbtnActiveYes.Checked = true; } else { // CompanyClient.UpdateContacttableDetail(contactName, email, Mobilecont, contactIdUpdate, profile.DBConnection._constr); CompanyClient.UpdateLocationDetails(locationid, companyid, deptid, locationCode, address1, address2, Country, State, city, zipcode, landmark, faxno, active, contactName, email, MobileNo, userid, DateTime.Now, hdnstate, Locationname, ContactID, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Updated successfully"); } } else { // CompanyClient.UpdateContacttableDetail(contactName, email, Mobilecont, contactIdUpdate, profile.DBConnection._constr); CompanyClient.UpdateLocationDetails(locationid, companyid, deptid, locationCode, address1, address2, Country, State, city, zipcode, landmark, faxno, active, contactName, email, MobileNo, userid, DateTime.Now, hdnstate, Locationname, ContactID, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Updated successfully"); } } clr(); getLocationList(); ActiveTab("Load"); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Location Master", "pageSave"); } finally { CompanyClient.Close(); } }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { iProductCategoryMasterClient Message = new iProductCategoryMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); if (hdnState.Value == "Add") { DataSet ds = new DataSet(); long HeaderId = 0; try { ds = Message.GetMessageTempData(profile.DBConnection._constr); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (i < 1) { string Destination = ds.Tables[i].Rows[i]["Destination"].ToString(); string ActionType = ds.Tables[i].Rows[i]["ActionType"].ToString(); string TableName = ds.Tables[i].Rows[i]["TableName"].ToString(); string description = ds.Tables[i].Rows[i]["description"].ToString(); string Remark = ds.Tables[i].Rows[i]["Remark"].ToString(); string sequence = ds.Tables[i].Rows[i]["sequence"].ToString(); string FieldID = ds.Tables[i].Rows[i]["FieldID"].ToString(); long CreatedBy = profile.Personal.UserID; Message.InsertMessageHeader(Destination, ActionType, TableName, description, CreatedBy, Remark, profile.DBConnection._constr); DataSet ds1 = new DataSet(); ds1 = Message.GetMessHeaderID(profile.DBConnection._constr); HeaderId = Convert.ToInt64(ds1.Tables[0].Rows[0][0].ToString()); Message.InsrtIntoMessageHeader(HeaderId, Convert.ToInt64(sequence), Convert.ToInt64(FieldID), CreatedBy, profile.DBConnection._constr); } else { long Sequence = Convert.ToInt64(ds.Tables[0].Rows[i]["sequence"].ToString()); long FieldID = Convert.ToInt64(ds.Tables[0].Rows[i]["FieldID"].ToString()); long CreatedBy = profile.Personal.UserID; Message.InsrtIntoMessageHeader(HeaderId, Sequence, FieldID, CreatedBy, profile.DBConnection._constr); } } Message.DeleteMessageTemptable(profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record saved successfully"); } catch { } finally { } } else if (hdnState.Value == "Edit") { long MessageID = Convert.ToInt64(hdnMessageID.Value); long ModifyBy = profile.Personal.UserID; string Destination = ddlDestination.SelectedItem.Text; string ActionType = ddlType.SelectedItem.Text; string TableName = ddlObject.SelectedItem.Text; string description = txtTitle.Text; string Remark = txtPurpose.Text; try { Message.UpdateMessageHeader(MessageID, Destination, ActionType, TableName, description, ModifyBy, Remark, profile.DBConnection._constr); WebMsgBox.MsgBox.Show("Record Update successfully"); clear(); } catch { } finally { } } }
protected void pageClear(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clr(); hdnmodestate.Value = ""; ActiveTab("Add"); }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { CustomProfile profile = CustomProfile.GetProfile(); iWarehouseClient Warehouseclient = new iWarehouseClient(); mWarehouseMaster WHDetail = new mWarehouseMaster(); tAddress address = new tAddress(); if (hdnstate.Value == "Edit") { WHDetail = Warehouseclient.GetWarehouseMasterByID(long.Parse(hdnwarehouseID.Value), profile.DBConnection._constr); address = Warehouseclient.GetWarehouseAddress(long.Parse(hdnwarehouseID.Value), profile.DBConnection._constr); } WHDetail.Code = txtcode.Text.ToString(); WHDetail.WarehouseName = txtwarehousename.Text.ToString(); WHDetail.Type = ddltype.SelectedItem.Text; WHDetail.Description = txtdescription.Text.ToString(); WHDetail.Remark = txtremark.Text.ToString(); WHDetail.Active = "No"; if (rbtYes.Checked == true) { WHDetail.Active = "Yes"; } WHDetail.CompanyID = long.Parse(hdncompanyid.Value); if (hdncustomerid.Value != "") { WHDetail.CustomerID = long.Parse(hdncustomerid.Value); } else { WHDetail.CustomerID = long.Parse(hdnNewCustomerID.Value); } WHDetail.CreatedBy = profile.Personal.UserID; WHDetail.CreationDate = DateTime.Now; address.AddressLine1 = txtCAddress1.Text.ToString(); address.AddressLine2 = txtAddress2.Text.ToString(); address.Zipcode = txtZipCode.Text.ToString(); address.County = hdnCountry.Value; address.State = hdncountryState.Value; address.City = txtCity.Text.ToString(); address.ObjectName = "Warehouse"; address.Active = "Y"; address.CreatedBy = profile.Personal.UserID.ToString(); address.CreationDate = DateTime.Now; address.CompanyID = long.Parse(hdncompanyid.Value); address.AddressType = "Warehouse"; if (hdnstate.Value == "Edit") { WHDetail.ModifiedBy = profile.Personal.UserID; WHDetail.ModifiedDate = DateTime.Now; address.LastModifiedBy = profile.Personal.UserID.ToString(); address.LastModifiedDate = DateTime.Now; long WarehouseID = Warehouseclient.SaveWarehouseMaster(WHDetail, profile.DBConnection._constr); address.ReferenceID = WarehouseID; long AddressID = Warehouseclient.SaveWarehouseAddress(address, profile.DBConnection._constr); UCContactPerson1.FinalSaveContactPerson("Warehouse", long.Parse(hdnwarehouseID.Value)); UCContactPerson1.ClearContactPerson("Warehouse"); WebMsgBox.MsgBox.Show("Record Updated successfully"); } else { long WarehouseID = Warehouseclient.SaveWarehouseMaster(WHDetail, profile.DBConnection._constr); address.ReferenceID = WarehouseID; hdnwarehouseID.Value = WarehouseID.ToString(); long AddressID = Warehouseclient.SaveWarehouseAddress(address, profile.DBConnection._constr); UCContactPerson1.FinalSaveContactPerson("Warehouse", long.Parse(hdnwarehouseID.Value)); UCContactPerson1.ClearContactPerson("Warehouse"); WebMsgBox.MsgBox.Show("Record saved successfully"); } clear(); Response.Redirect("WarehouseMaster.aspx"); }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clear(); setActiveTab(1); btncustomernext.Visible = true; }
protected void pageClear(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clear(); }
protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { }