How to use setText method in wpt

Best JavaScript code snippet using wpt

JSGrupArt.js

Source:JSGrupArt.js Github

copy

Full Screen

1var _vld = [8];2var DIRECCIONES = "";3var _dcs = [];4var _vld = [8];5var ult = 0;6var general = "";7$(document).ready(function () {8 pestañascrearclie();9 try {10 Set_VisibleOption();11 Get_InitialData();12 //Set_InitialData();13 //InitControls();14 } catch (e) {15 alert(e.Message);16 }17});18//function Set_Operation(s, e) {19// // GUARDAR20// if (e.item.name === "Save" && e.item.GetText() === "Crear") {21// Save();22// $("section.sectablas").hide();23// $(".amenucrearclie").css("background-color", "#4F93E3");24// $(".amenucrearclie").css("color", "White");25// $("section.sectablas:first").show();26// $(".amenucrearclie:first").css("background-color", "#BCD4F6");27// $(".amenucrearclie:first").css("color", "Black");28// }29// // NUEVO30// else if (e.item.name === "New") {31// ClearControl();32// $("section.sectablas").hide();33// $(".amenucrearclie").css("background-color", "#4F93E3");34// $(".amenucrearclie").css("color", "White");35// $("section.sectablas:first").show();36// $(".amenucrearclie:first").css("background-color", "#BCD4F6");37// $(".amenucrearclie:first").css("color", "Black");38// }39// // BUSCAR40// else if (e.item.name === "Search") {41// InitControls();42// ppcbuscargrupo.Show();43// }44// else if (e.item.name === "Save" && e.item.GetText() === "Modificar") {45// Modify();46// $("section.sectablas").hide();47// $(".amenucrearclie").css("background-color", "#4F93E3");48// $(".amenucrearclie").css("color", "White");49// $("section.sectablas:first").show();50// $(".amenucrearclie:first").css("background-color", "#BCD4F6");51// $(".amenucrearclie:first").css("color", "Black");52// }53//}54function val_general() {55 alert("vamos bien");56 general = this.ID;57 alert("" + general);58 59 60 if (bteBalInvntAc.click) {61 general = "3";62 }63 if (bteSaleCostAc.click) {64 general = "4";65 }66 if (bteTransferAc.click) {67 general = "5";68 }69 if (bteVarianceAc.click) {70 general = "6";71 }72 if (btePriceDifAc.click) {73 general = "7";74 }75 if (bteNegStckAct.click) {76 general = "8";77 }78 if (bteDecreasAc.click) {79 general = "9";80 }81 if (bteIncreasAc.click) {82 general = "10";83 }84 85 if (bteReturnAc.click) {86 general = "11";87 }88 if (betFrRevenuAc.click) {89 general = "12";90 }91 if (bteFrExpensAc.click) {92 general = "13";93 }94 if (bteExchangeAc.click) {95 general = "14";96 }97 if (bteBalanceAcc.click) {98 general = "15";99 }100 if (bteDecresGlAc.click) {101 general = "16";102 }103 if (bteIncresGlAc.click) {104 general = "17";105 }106 if (bteWipAcct.click) {107 general = "18";108 }109 if (bteWipVarAcct.click) {110 general = "19";111 }112 if (bteStokRvlAct.click) {113 general = "20";114 }115 if (bteStkOffsAct.click) {116 general = "21";117 }118 if (bteExpClrAct.click) {119 general = "22";120 }121 if (bteStkInTnAct.click) {122 general = "23";123 }124 if (bteARCMAct.click) {125 general = "24";126 }127 if (bteAPCMAct.click) {128 general = "25";129 }130 if (bteARCMFrnAct.click) {131 general = "26";132 }133 if (bteAPCMFrnAct.click) {134 general = "27";135 }136}137function Get_Cuenta1() {138 gdvAccountsrch.PerformCallback();139}140function Get_GrupoArt() {141 gdvGrupoArt.PerformCallback("SRCH");142}143function Show_RevenuesAc() {144 gdvRevenuesAc.Show();145}146function Show_CuentaSearch2() {147 gdvAccountsrch2.Show();148}149function OkCuenta() {150 var rowc = gdvAccountsrch.GetVisibleRowsOnPage();151 if (rowc === 0) {152 alert("No existen registros para realizar esta operación.");153 }154 else if (gdvAccountsrch.GetFocusedRowIndex() === -1) {155 alert("Seleccione un registro para realizar esta operación.");156 }157 else {158 gdvAccountsrch.GetRowValues(gdvAccountsrch.GetFocusedRowIndex(), "AcctCode;AcctName;CurrTotal;FormatCode;Project", OnGetRowValuesCuenta);159 }160}161function OnGetRowValuesCuenta(values) {162 if (general == "1") {163 betxtExpensesAc.SetText(values[0]);164 txtExpensesAc.SetText(values[1]);165 166 }167 else if (general == "2") {168 beRevenuesAc.SetText(values[0]);169 txtRevenuesAc.SetText(values[1]);170 171 }172 else if (general == "3") {173 bteBalInvntAc.SetText(values[0]);174 txtBalInvntAc.SetText(values[1]);175 176 }177 else if (general == "4") {178 bteSaleCostAc.SetText(values[0]);179 txtSaleCostAc.SetText(values[1]);180 181 }182 else if (general == "5") {183 bteTransferAc.SetText(values[0]);184 txtTransferAc.SetText(values[1]);185 186 }187 else if (general == "6") {188 bteVarianceAc.SetText(values[0]);189 txtbteVarianceAc.SetText(values[1]);190 191 }192 else if (general == "7") {193 btePriceDifAc.SetText(values[0]);194 txtPriceDifAc.SetText(values[1]);195 196 }197 else if (general == "8") {198 bteNegStckAct.SetText(values[0]);199 txtNegStckAct.SetText(values[1]);200 201 }202 else if (general == "9") {203 bteDecreasAc.SetText(values[0]);204 txtDecreasAc.SetText(values[1]);205 206 }207 else if (general == "10") {208 bteIncreasAc.SetText(values[0]);209 txtIncreasAc.SetText(values[1]);210 211 }212 else if (general == "11") {213 bteReturnAc.SetText(values[0]);214 txtReturnAc.SetText(values[1]);215 216 }217 else if (general == "12") {218 betFrRevenuAc.SetText(values[0]);219 txtFrRevenuAc.SetText(values[1]);220 221 }222 else if (general == "13") {223 bteFrExpensAc.SetText(values[0]);224 txtFrExpensAc.SetText(values[1]);225 226 }227 else if (general == "14") {228 bteExchangeAc.SetText(values[0]);229 txtExchangeAc.SetText(values[1]);230 231 }232 else if (general == "15") {233 bteBalanceAcc.SetText(values[0]);234 txtBalanceAcc.SetText(values[1]);235 236 }237 else if (general == "16") {238 bteDecresGlAc.SetText(values[0]);239 txtDecresGlAc.SetText(values[1]);240 241 }242 else if (general == "17") {243 bteIncresGlAc.SetText(values[0]);244 txtIncresGlAc.SetText(values[1]);245 246 }247 else if (general == "18") {248 bteWipAcct.SetText(values[0]);249 txtWipAcct.SetText(values[1]);250 251 }252 else if (general == "19") {253 bteWipVarAcct.SetText(values[0]);254 txtWipVarAcct.SetText(values[1]);255 256 }257 else if (general == "20") {258 bteStokRvlAct.SetText(values[0]);259 txtStokRvlAct.SetText(values[1]);260 261 }262 else if (general == "21") {263 bteStkOffsAct.SetText(values[0]);264 txtStkOffsAct.SetText(values[1]);265 266 }267 else if (general == "22") {268 bteExpClrAct.SetText(values[0]);269 txtExpClrAct.SetText(values[1]);270 271 }272 else if (general == "23") {273 bteStkInTnAct.SetText(values[0]);274 txtStkInTnAct.SetText(values[1]);275 276 }277 else if (general == "24") {278 bteARCMAct.SetText(values[0]);279 txtARCMAct.SetText(values[1]);280 281 }282 else if (general == "25") {283 bteAPCMAct.SetText(values[0]);284 txtAPCMAct.SetText(values[1]);285 286 }287 else if (general == "26") {288 bteARCMFrnAct.SetText(values[0]);289 txtARCMFrnAct.SetText(values[1]);290 291 }292 else if (general == "27") {293 bteAPCMFrnAct.SetText(values[0]);294 txtAPCMFrnAct.SetText(values[1]);295 296 }297 gdvAccountsrch.SetFocusedRowIndex(-1);298 ppcAccountSearch.Hide();299 300}301function okGrupoArt() {302 var rowc = gdvGrupoArt.GetVisibleRowsOnPage();303 if (rowc === 0) {304 alert("No existen registros para realizar esta operación.");305 }306 else if (gdvGrupoArt.GetFocusedRowIndex() === -1) {307 alert("Seleccione un registro para realizar esta operación.");308 }309 else {310 gdvGrupoArt.GetRowValues(gdvGrupoArt.GetFocusedRowIndex(), "ItmsGrpCod;ItmsGrpNam;PlaningSys;PrcrmntMtd;OrdrIntrvl;OrdrMulti;MinOrdrQty;LeadTime;ToleranDay;InvntSys;ExpensesAc;ExpensesAcName;RevenuesAc;RevenuesAcName;BalInvntAc;BalInvntAcName;SaleCostAc;SaleCostAcName;TransferAc;TransferAcName;VarianceAc;VarianceAcName;PriceDifAc;PriceDifAcName;NegStckAct;NegStckActName;DecreasAc;DecreasAcName;IncreasAc;IncreasAcName;ReturnAc;ReturnAcName;FrRevenuAc;FrRevenuAcName;FrExpensAc;FrExpensAcName;ExchangeAc;ExchangeAcName;BalanceAcc;BalanceAccName;DecresGlAc;DecresGlAcName;IncresGlAc;IncresGlAcName;WipAcct;WipAcctName;WipVarAcct;WipVarAcctName;StokRvlAct;StokRvlActName;StkOffsAct;StkOffsActName;ExpClrAct;ExpClrActName;StkInTnAct;StkInTnActName;ARCMAct;ARCMActName;APCMAct;APCMActName;ARCMFrnAct;ARCMFrnActName;APCMFrnAct;APCMFrnActName", OnGetRowValuesGrupoArt);311 }312}313function OnGetRowValuesGrupoArt(values) {314 txtCode.SetText(values[0]);315 txtItmsGrpNam.SetText(values[1]);316 cbbPlaningSys.SetValue(values[2]);317 cbbPrcrmntMtd.SetValue(values[3]);318 cbbOrdrIntrvl.SetValue(values[4]);319 txtOrdrMulti.SetText(values[5]);320 txtMinOrdrQty.SetText(values[6]);321 txtLeadTime.SetText(values[7]);322 txtToleranDay.SetText(values[8]);323 betxtExpensesAc.SetText(values[10]);324 txtExpensesAc.SetText(values[11]);325 326 beRevenuesAc.SetText(values[12]);327 txtRevenuesAc.SetText(values[13]);328 329 bteBalInvntAc.SetText(values[14]);330 txtBalInvntAc.SetText(values[15]);331 332 bteSaleCostAc.SetText(values[16]);333 txtSaleCostAc.SetText(values[17]);334 335 bteTransferAc.SetText(values[18]);336 txtTransferAc.SetText(values[19]);337 338 bteVarianceAc.SetText(values[20]);339 txtbteVarianceAc.SetText(values[21]);340 341 btePriceDifAc.SetText(values[22]);342 txtPriceDifAc.SetText(values[23]);343 344 bteNegStckAct.SetText(values[24]);345 txtNegStckAct.SetText(values[25]);346 347 bteDecreasAc.SetText(values[26]);348 txtDecreasAc.SetText(values[27]);349 350 bteIncreasAc.SetText(values[28]);351 txtIncreasAc.SetText(values[29]);352 353 bteReturnAc.SetText(values[30]);354 txtReturnAc.SetText(values[31]);355 356 betFrRevenuAc.SetText(values[32]);357 txtFrRevenuAc.SetText(values[33]);358 359 360 bteFrExpensAc.SetText(values[34]);361 txtFrExpensAc.SetText(values[35]);362 363 364 bteExchangeAc.SetText(values[36]);365 txtExchangeAc.SetText(values[37]);366 367 368 bteBalanceAcc.SetText(values[38]);369 txtBalanceAcc.SetText(values[39]);370 371 372 bteDecresGlAc.SetText(values[40]);373 txtDecresGlAc.SetText(values[41]);374 375 bteIncresGlAc.SetText(values[42]);376 txtIncresGlAc.SetText(values[43]);377 378 bteWipAcct.SetText(values[44]);379 txtWipAcct.SetText(values[45]);380 381 bteWipVarAcct.SetText(values[46]);382 txtWipVarAcct.SetText(values[47]);383 384 bteStokRvlAct.SetText(values[48]);385 txtStokRvlAct.SetText(values[49]);386 387 388 bteStkOffsAct.SetText(values[50]);389 txtStkOffsAct.SetText(values[51]);390 391 bteExpClrAct.SetText(values[52]);392 txtExpClrAct.SetText(values[53]);393 394 395 bteStkInTnAct.SetText(values[54]);396 txtStkInTnAct.SetText(values[55]);397 398 bteARCMAct.SetText(values[56]);399 txtARCMAct.SetText(values[57]);400 401 402 bteAPCMAct.SetText(values[58]);403 txtAPCMAct.SetText(values[59]);404 405 bteARCMFrnAct.SetText(values[60]);406 txtARCMFrnAct.SetText(values[61]);407 408 409 bteAPCMFrnAct.SetText(values[62]);410 txtAPCMFrnAct.SetText(values[63]);411 412 mnuOper.GetItemByName("Save").SetText("Modificar");413 gdvGrupoArt.SetFocusedRowIndex(-1);414 ppcbuscargrupo.Hide();415}416//function SaveItems() {417// clbOperation.PerformCallback("SaveItem");418//}419//function Save() {420// SaveItems();421// ClearControl();422//}423function Com_Operation(s, e) {424 ldpProcess.Hide();425 var _spd = "";426 if (e.result.indexOf("OKBP") !== -1) {427 428 alert("Grupo de Articulos creado con éxito!");429 ClearControl();430 }431 else if (e.result.indexOf("OKUPDBP") !== -1) {432 alert("Grupo de Articulos modificado con éxito!");433 ClearControl();434 }435 else {436 alert(e.result);437 }438}439function showsearchaGrupoArt() {440 ppcbuscargrupo.Show();441}442function OkCuenta2() {443 var rowc = gdvAccountsrch2.GetVisibleRowsOnPage();444 if (rowc === 0) {445 alert("No existen registros para realizar esta operación.");446 }447 else if (gdvAccountsrch2.GetFocusedRowIndex() === -1) {448 alert("Seleccione un registro para realizar esta operación.");449 }450 else {451 gdvAccountsrch2.GetRowValues(gdvAccountsrch2.GetFocusedRowIndex(), "AcctCode;AcctName;CurrTotal;FormatCode;Project", OnGetRowValuesCuenta2);452 }453}454function OnGetRowValuesCuenta2(values) {455 if (!isNullOrWhiteSpace(values[0])) {456 txtShortname.SetText(values[0]);457 txtAcctName.SetText(values[1]);458 txtAccount.SetText(values[3]);459 txtProjectmodo.SetText(values[4]);460 }461 gdvAccountsrch2.SetFocusedRowIndex(-1);462 ppcAccountSearch2.Hide();463 464}465function Show_AccountSearch() {466 general = "1";467 ppcAccountSearch.Show();468 469}470function Show_AccountSearch2() {471 general = "2";472 ppcAccountSearch.Show();473}474function Show_AccountSearch3() {475 general = "3";476 ppcAccountSearch.Show();477}478function Show_AccountSearch4() {479 general = "4";480 ppcAccountSearch.Show();481}482function Show_AccountSearch5() {483 general = "5";484 ppcAccountSearch.Show();485}486function Show_AccountSearch6() {487 general = "6";488 ppcAccountSearch.Show();489}490function Show_AccountSearch7() {491 general = "7";492 ppcAccountSearch.Show();493}494function Show_AccountSearch8() {495 general = "8";496 ppcAccountSearch.Show();497} 498function Show_AccountSearch9() {499 general = "9";500 ppcAccountSearch.Show();501}502function Show_AccountSearch10() {503 general = "10";504 ppcAccountSearch.Show();505}506function Show_AccountSearch11() {507 general = "11";508 ppcAccountSearch.Show();509}510function Show_AccountSearch12() {511 general = "12";512 ppcAccountSearch.Show();513}514function Show_AccountSearch13() {515 general = "13";516 ppcAccountSearch.Show();517}518function Show_AccountSearch14() {519 general = "14";520 ppcAccountSearch.Show();521}522function Show_AccountSearch15() {523 general = "15";524 ppcAccountSearch.Show();525}526function Show_AccountSearch16() {527 general = "16";528 ppcAccountSearch.Show();529}530function Show_AccountSearch17() {531 general = "17";532 ppcAccountSearch.Show();533}534function Show_AccountSearch18() {535 general = "18";536 ppcAccountSearch.Show();537}538function Show_AccountSearch19() {539 general = "19";540 ppcAccountSearch.Show();541}542function Show_AccountSearch20() {543 general = "20";544 ppcAccountSearch.Show();545}546function Show_AccountSearch21() {547 general = "21";548 ppcAccountSearch.Show();549}550function Show_AccountSearch22() {551 general = "22";552 ppcAccountSearch.Show();553}554function Show_AccountSearch23() {555 general = "23";556 ppcAccountSearch.Show();557}558function Show_AccountSearch24() {559 general = "24";560 ppcAccountSearch.Show();561}562function Show_AccountSearch25() {563 general = "25";564 ppcAccountSearch.Show();565}566function Show_AccountSearch26() {567 general = "26";568 ppcAccountSearch.Show();569}570function Show_AccountSearch27() {571 general = "27";572 ppcAccountSearch.Show();573}574function CancelCuenta() {575 gdvAccountsrch.Hide;576}577function calcelgrupoart() {578 gdvGrupoArt.Hide;579}580function CancelCuenta2() {581 gdvAccountsrch2.Hide;582}583function Show_CuentaSearch() {584 585 gdvAccountsrch.Show();586}587function Show_CuentaSearch2() {588 gdvAccountsrch2.Show();589}590function Get_InitialData() {591 var socied = hdfTemp.Get("_soci");592 $.ajax(593 {594 type: "POST",595 url: "../Gestion/GrupoArt.aspx/GET_VALORES_GRUPO_ART",596 data: '{"socied":"' + socied + '"}',597 contentType: "application/json; charset=uft-8",598 dataType: "json",599 success: function (result) {600 Set_InitialData(result);601 },602 error: function (result) {603 alert(result);604 }605 });606}607function Set_InitialData(result) {608 txtCode.SetEnabled(false);609 txtMinOrdrQty.SetText("0.0");610 txtOrdrMulti.SetText("0.0");611 beRevenuesAc.SetText("701211");612 txtRevenuesAc.SetText("Terceros");613 bteBalInvntAc.SetText("201111");614 txtBalInvntAc.SetText("Mercadería - costo");615 bteSaleCostAc.SetText("691211");616 txtSaleCostAc.SetText("Terceros");617 bteTransferAc.SetText("421101");618 txtTransferAc.SetText("No emitidas");619 btePriceDifAc.SetText("659301");620 txtPriceDifAc.SetText("Otros gastos de gestión");621 bteReturnAc.SetText("701211");622 txtReturnAc.SetText("Terceros");623 betFrRevenuAc.SetText("701111");624 txtFrRevenuAc.SetText("Terceros");625 bteExchangeAc.SetText("676101");626 txtExchangeAc.SetText("Diferencia de cambio");627 bteWipAcct.SetText("231111");628 txtWipAcct.SetText("Productos en proceso - costo")629 bteStkInTnAct.SetText("281101");630 txtStkInTnAct.SetText("Mercaderías");631 bteARCMAct.SetText("701211");632 txtARCMAct.SetText("Terceros");633 bteARCMFrnAct.SetText("701111");634 txtARCMFrnAct.SetText("Terceros");635 636 637 var _rs1 = result.d.where(function (item) { return (item.CLAVE === "IN"); });638 cbbOrdrIntrvl.BeginUpdate();639 cbbOrdrIntrvl.ClearItems();640 _rs1.forEach(function (item) {641 cbbOrdrIntrvl.AddItem(item.VALOR, item.INDEX);642 });643 cbbOrdrIntrvl.EndUpdate();644 cbbOrdrIntrvl.SetValue(0);645 646}647function Set_VisibleOption() {648 mnuOper.GetItemByName("Cancel").SetVisible(false);649 mnuOper.GetItemByName("Duplicate").SetVisible(true);650 mnuOper.GetItemByName("Export").SetVisible(false);651 mnuOper.GetItemByName("PaymentIn").SetVisible(false);652 mnuOper.GetItemByName("Print").SetVisible(false);653 mnuOper.GetItemByName("CopyFrom").SetVisible(false);654 mnuOper.GetItemByName("CopyTo").SetVisible(false);655 mnuOper.GetItemByName("Recursos").SetVisible(false);656 mnuOper.GetItemByName("Export").SetEnabled(false);657 mnuOper.GetItemByName("PaymentIn").SetEnabled(false);658 mnuOper.GetItemByName("Print").SetEnabled(false);659 mnuOper.GetItemByName("CopyFrom").SetEnabled(false);660 mnuOper.GetItemByName("CopyTo").SetEnabled(false);661}662function isNullOrWhiteSpace(str) {663 return str === null || str.match(/^ *$/) !== null;664}665function uniqueBy(arr, fn) {666 var unique = {};667 var distinct = [];668 arr.forEach(function (x) {669 var key = fn(x);670 if (!unique[key]) {671 distinct.push(key);672 unique[key] = true;673 }674 });675 return distinct;676}677function ClearControl() {678 txtItmsGrpNam.SetText("");679 cbbPlaningSys.SetValue("N");680 cbbPrcrmntMtd.SetValue("M");681 cbbOrdrIntrvl.SetText("");682 txtOrdrMulti.SetText("");683 txtMinOrdrQty.SetText("");684 txtLeadTime.SetText("");685 txtToleranDay.SetText("");686 betxtExpensesAc.SetText("");687 betxtExpensesAc.SetValue("");688 txtExpensesAc.SetText("");689 bteVarianceAc.SetText("");690 bteVarianceAc.SetValue("");691 txtbteVarianceAc.SetText("");692 bteNegStckAct.SetText("");693 bteNegStckAct.SetValue("");694 txtNegStckAct.SetText("");695 bteDecreasAc.SetText("");696 bteDecreasAc.SetValue("");697 txtDecreasAc.SetText("");698 bteIncreasAc.SetText("");699 bteIncreasAc.SetValue("");700 txtIncreasAc.SetText("");701 bteFrExpensAc.SetText("");702 bteFrExpensAc.SetValue("");703 txtFrExpensAc.SetText("");704 bteBalanceAcc.SetText("");705 bteBalanceAcc.SetValue("");706 txtBalanceAcc.SetText("");707 bteDecresGlAc.SetText("");708 bteDecresGlAc.SetValue("");709 txtDecresGlAc.SetText("");710 bteIncresGlAc.SetText("");711 bteIncresGlAc.SetValue("");712 txtIncresGlAc.SetText("");713 bteWipVarAcct.SetText("");714 txtWipVarAcct.SetText("");715 bteWipVarAcct.SetValue("");716 bteStokRvlAct.SetText("");717 bteStokRvlAct.SetValue("");718 txtStokRvlAct.SetText("");719 bteStkOffsAct.SetText("");720 txtStkOffsAct.SetText("");721 bteStkOffsAct.SetValue("");722 bteExpClrAct.SetText("");723 bteExpClrAct.SetValue("");724 txtExpClrAct.SetText("");725 bteAPCMAct.SetText("");726 bteAPCMAct.SetValue("");727 txtAPCMAct.SetText("");728 bteAPCMFrnAct.SetText("");729 bteAPCMFrnAct.SetValue("");730 txtAPCMFrnAct.SetText("");731 mnuOper.GetItemByName("Save").SetText("Crear");732 gdvGrupoArt.PerformCallback("CLR");733 734}735function InitControls() {736 txtCode.SetEnabled(false);737 txtItmsGrpNam.SetText("");738 cbbPlaningSys.SetValue("N");739 cbbPrcrmntMtd.SetValue("M");740 cbbOrdrIntrvl.SetText("");741 txtOrdrMulti.SetText("");742 txtMinOrdrQty.SetText("");743 txtLeadTime.SetText("");744 txtToleranDay.SetText("");745 betxtExpensesAc.SetText("");746 betxtExpensesAc.SetValue("");747 txtExpensesAc.SetText("");748 bteVarianceAc.SetText("");749 bteVarianceAc.SetValue("");750 txtbteVarianceAc.SetText("");751 bteNegStckAct.SetText("");752 bteNegStckAct.SetValue("");753 txtNegStckAct.SetText("");754 bteDecreasAc.SetText("");755 bteDecreasAc.SetValue("");756 txtDecreasAc.SetText("");757 bteIncreasAc.SetText("");758 bteIncreasAc.SetValue("");759 txtIncreasAc.SetText("");760 bteFrExpensAc.SetText("");761 bteFrExpensAc.SetValue("");762 txtFrExpensAc.SetText("");763 bteBalanceAcc.SetText("");764 bteBalanceAcc.SetValue("");765 txtBalanceAcc.SetText("");766 bteDecresGlAc.SetText("");767 bteDecresGlAc.SetValue("");768 txtDecresGlAc.SetText("");769 bteIncresGlAc.SetText("");770 bteIncresGlAc.SetValue("");771 txtIncresGlAc.SetText("");772 bteWipVarAcct.SetText("");773 txtWipVarAcct.SetText("");774 bteWipVarAcct.SetValue("");775 bteStokRvlAct.SetText("");776 bteStokRvlAct.SetValue("");777 txtStokRvlAct.SetText("");778 bteStkOffsAct.SetText("");779 txtStkOffsAct.SetText("");780 bteStkOffsAct.SetValue("");781 bteExpClrAct.SetText("");782 bteExpClrAct.SetValue("");783 txtExpClrAct.SetText("");784 bteAPCMAct.SetText("");785 bteAPCMAct.SetValue("");786 txtAPCMAct.SetText("");787 bteAPCMFrnAct.SetText("");788 bteAPCMFrnAct.SetValue("");789 txtAPCMFrnAct.SetText("");790 txtMinOrdrQty.SetText("0.0");791 txtOrdrMulti.SetText("0.0");792 beRevenuesAc.SetText("701211");793 txtRevenuesAc.SetText("Terceros");794 bteBalInvntAc.SetText("201111");795 txtBalInvntAc.SetText("Mercadería - costo");796 bteSaleCostAc.SetText("691211");797 txtSaleCostAc.SetText("Terceros");798 bteTransferAc.SetText("421101");799 btePriceDifAc.SetText("659301");800 txtPriceDifAc.SetText("Otros gastos de gestión");801 bteReturnAc.SetText("701211");802 txtReturnAc.SetText("Terceros");803 betFrRevenuAc.SetText("701111");804 txtFrRevenuAc.SetText("Terceros");805 bteExchangeAc.SetText("676101");806 txtExchangeAc.SetText("Diferencia de cambio");807 bteWipAcct.SetText("231111");808 txtWipAcct.SetText("Productos en proceso - costo")809 bteStkInTnAct.SetText("281101");810 txtStkInTnAct.SetText("Mercaderías");811 bteARCMAct.SetText("701211");812 txtARCMAct.SetText("Terceros");813 bteARCMFrnAct.SetText("701111");814 txtARCMFrnAct.SetText("Terceros");815 816 cbbOrdrIntrvl.SetValue(0);817}818function Save() {819 clbOperation.PerformCallback("SaveItems");820 InitControls();821 822}823function Modificar() {824 clbOperation.PerformCallback("Modify");825 826}827function Set_Operation(s, e) {828 // GUARDAR829 if (e.item.name === "Save" && e.item.GetText() === "Crear") {830 Save();831 InitControls();832 }833 // NUEVO834 else if (e.item.name === "New") {835 InitControls();836 mnuOper.GetItemByName("Save").SetText("Crear");837 }838 // BUSCAR839 else if (e.item.name === "Search") {840 //InitControls();841 //txtnombregrupo.SetText("");842 showsearchaGrupoArt();843 }844 else if (e.item.name === "Duplicate") {845 txtItmsGrpNam.SetText("");846 mnuOper.GetItemByName("Save").SetText("Crear");847 }848 else if (e.item.name === "Save" && e.item.GetText() === "Modificar") {849 Modificar();850 }851}852function ProcessKeyPress(s, e) {853 var charCode = (e.htmlEvent.which) ? e.htmlEvent.which : event.keyCode854 if (charCode > 31 && (charCode < 48 || charCode > 57))855 _aspxPreventEvent(e.htmlEvent);856}857//function Com_Operation(s, e) {858// ldpProcess.Hide();859// var _spd = "";860// if (e.result.indexOf("OKBP") !== -1) {861// _spd = e.result.split("#");862// txtidllamada.SetText(_spd[1]);863// alert("¡Asiento creado con éxito!");864// }865// else if (e.result.indexOf("IKCC") !== -1) {866// //_spd = e.result.split("#");867// //txtidllamada.SetText(_spd[1]);868// alert("¡Asiento Modificado con éxito!");869// }870// else {871// alert(e.result);872// }873//}874function CancelClientCr() {875 ppcClientCr.Hide();876}877function ClearControlsClient() {878 879}880function fincallback(s, e) {881 alert(e.result);882}883function pestañascrearclie() {884 $(".amenucrearclie").css("background-color", "#4F93E3");885 $(".amenucrearclie").css("color", "White");886 $(".amenucrearclie:first").css("background-color", "#BCD4F6");887 $(".amenucrearclie:first").css("color", "Black");888 $("section.sectablas").hide();889 $("section.sectablas:first").show();890 $(".amenucrearclie").click(function () {891 $(".amenucrearclie").css("background-color", "#4F93E3");892 $(".amenucrearclie").css("color", "White");893 $(this).css("background-color", "#BCD4F6");894 $(this).css("color", "Black");895 $("section.sectablas").hide();896 var activartabla = $(this).attr("href");897 $(activartabla).show();898 return false;899 });...

Full Screen

Full Screen

browser_dbg_searchbox-parse.js

Source:browser_dbg_searchbox-parse.js Github

copy

Full Screen

...6function test() {7 initDebugger("about:blank").then(([aTab,, aPanel]) => {8 let filterView = aPanel.panelWin.DebuggerView.Filtering;9 let searchbox = aPanel.panelWin.DebuggerView.Filtering._searchbox;10 setText(searchbox, "");11 is(filterView.searchData.toSource(), '["", [""]]',12 "The searchbox data wasn't parsed correctly (1).");13 setText(searchbox, "#token");14 is(filterView.searchData.toSource(), '["#", ["", "token"]]',15 "The searchbox data wasn't parsed correctly (2).");16 setText(searchbox, ":42");17 is(filterView.searchData.toSource(), '[":", ["", 42]]',18 "The searchbox data wasn't parsed correctly (3).");19 setText(searchbox, "#token:42");20 is(filterView.searchData.toSource(), '["#", ["", "token:42"]]',21 "The searchbox data wasn't parsed correctly (4).");22 setText(searchbox, ":42#token");23 is(filterView.searchData.toSource(), '["#", [":42", "token"]]',24 "The searchbox data wasn't parsed correctly (5).");25 setText(searchbox, "#token:42#token:42");26 is(filterView.searchData.toSource(), '["#", ["#token:42", "token:42"]]',27 "The searchbox data wasn't parsed correctly (6).");28 setText(searchbox, ":42#token:42#token");29 is(filterView.searchData.toSource(), '["#", [":42#token:42", "token"]]',30 "The searchbox data wasn't parsed correctly (7).");31 setText(searchbox, "file");32 is(filterView.searchData.toSource(), '["", ["file"]]',33 "The searchbox data wasn't parsed correctly (8).");34 setText(searchbox, "file#token");35 is(filterView.searchData.toSource(), '["#", ["file", "token"]]',36 "The searchbox data wasn't parsed correctly (9).");37 setText(searchbox, "file:42");38 is(filterView.searchData.toSource(), '[":", ["file", 42]]',39 "The searchbox data wasn't parsed correctly (10).");40 setText(searchbox, "file#token:42");41 is(filterView.searchData.toSource(), '["#", ["file", "token:42"]]',42 "The searchbox data wasn't parsed correctly (11).");43 setText(searchbox, "file:42#token");44 is(filterView.searchData.toSource(), '["#", ["file:42", "token"]]',45 "The searchbox data wasn't parsed correctly (12).");46 setText(searchbox, "file#token:42#token:42");47 is(filterView.searchData.toSource(), '["#", ["file#token:42", "token:42"]]',48 "The searchbox data wasn't parsed correctly (13).");49 setText(searchbox, "file:42#token:42#token");50 is(filterView.searchData.toSource(), '["#", ["file:42#token:42", "token"]]',51 "The searchbox data wasn't parsed correctly (14).");52 setText(searchbox, "!token");53 is(filterView.searchData.toSource(), '["!", ["token"]]',54 "The searchbox data wasn't parsed correctly (15).");55 setText(searchbox, "!token#global");56 is(filterView.searchData.toSource(), '["!", ["token#global"]]',57 "The searchbox data wasn't parsed correctly (16).");58 setText(searchbox, "!token#global:42");59 is(filterView.searchData.toSource(), '["!", ["token#global:42"]]',60 "The searchbox data wasn't parsed correctly (17).");61 setText(searchbox, "!token:42#global");62 is(filterView.searchData.toSource(), '["!", ["token:42#global"]]',63 "The searchbox data wasn't parsed correctly (18).");64 setText(searchbox, "@token");65 is(filterView.searchData.toSource(), '["@", ["token"]]',66 "The searchbox data wasn't parsed correctly (19).");67 setText(searchbox, "@token#global");68 is(filterView.searchData.toSource(), '["@", ["token#global"]]',69 "The searchbox data wasn't parsed correctly (20).");70 setText(searchbox, "@token#global:42");71 is(filterView.searchData.toSource(), '["@", ["token#global:42"]]',72 "The searchbox data wasn't parsed correctly (21).");73 setText(searchbox, "@token:42#global");74 is(filterView.searchData.toSource(), '["@", ["token:42#global"]]',75 "The searchbox data wasn't parsed correctly (22).");76 setText(searchbox, "*token");77 is(filterView.searchData.toSource(), '["*", ["token"]]',78 "The searchbox data wasn't parsed correctly (23).");79 setText(searchbox, "*token#global");80 is(filterView.searchData.toSource(), '["*", ["token#global"]]',81 "The searchbox data wasn't parsed correctly (24).");82 setText(searchbox, "*token#global:42");83 is(filterView.searchData.toSource(), '["*", ["token#global:42"]]',84 "The searchbox data wasn't parsed correctly (25).");85 setText(searchbox, "*token:42#global");86 is(filterView.searchData.toSource(), '["*", ["token:42#global"]]',87 "The searchbox data wasn't parsed correctly (26).");88 closeDebuggerAndFinish(aPanel);89 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpTextbox1 = document.getElementById('wpTextbox1');2wpTextbox1.setText('This is a test');3var wpTextbox1 = document.getElementById('wpTextbox1');4alert(wpTextbox1.getText());5var wpTextbox1 = document.getElementById('wpTextbox1');6alert(wpTextbox1.getSelectedText());7var wpTextbox1 = document.getElementById('wpTextbox1');8wpTextbox1.setSelectedText('This is a test');9var wpTextbox1 = document.getElementById('wpTextbox1');10alert(wpTextbox1.getSelectionStart());11var wpTextbox1 = document.getElementById('wpTextbox1');12alert(wpTextbox1.getSelectionEnd());13var wpTextbox1 = document.getElementById('wpTextbox1');14wpTextbox1.setSelectionStart(0);15var wpTextbox1 = document.getElementById('wpTextbox1');16wpTextbox1.setSelectionEnd(0);17var wpTextbox1 = document.getElementById('wpTextbox1');18wpTextbox1.setSelectionRange(0,0);19var wpTextbox1 = document.getElementById('wpTextbox1');20alert(wpTextbox1.getLength());21var wpTextbox1 = document.getElementById('wpTextbox1');22wpTextbox1.setSelectionRange(0,0);23var wpTextbox1 = document.getElementById('wpTextbox1');24wpTextbox1.replaceSelectedText('This is a test');25var wpTextbox1 = document.getElementById('wpTextbox1');26wpTextbox1.replaceText('This is a test');27var wpTextbox1 = document.getElementById('wpTextbox1');28wpTextbox1.replaceText('This is a test');29var wpTextbox1 = document.getElementById('wpTextbox1');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptextbox = new Wptextbox();2wptextbox.setText("Hello World");3var wptextbox = new Wptextbox();4var text = wptextbox.getText();5var wptextbox = new Wptextbox();6var charCount = wptextbox.getCharCount();7var wptextbox = new Wptextbox();8var lineCount = wptextbox.getLineCount();9var wptextbox = new Wptextbox();10wptextbox.setTheme("light");11var wptextbox = new Wptextbox();12wptextbox.setTheme("dark");13var wptextbox = new Wptextbox();14wptextbox.setTheme("custom");15var wptextbox = new Wptextbox();16var theme = {17 "box-shadow": "0 1px 1px rgba(0, 0, 0, 0.075) inset",18}19wptextbox.setCustomTheme(theme);20var wptextbox = new Wptextbox();21wptextbox.setLineHeight(10);22var wptextbox = new Wptextbox();23wptextbox.setFontFamily("Arial");24var wptextbox = new Wptextbox();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptextarea = new Wptextarea();2wptextarea.setText("Hello World");3var wptextarea = new Wptextarea();4var text = wptextarea.getText();5var wptextarea = new Wptextarea();6wptextarea.setSelection(1, 5);7var wptextarea = new Wptextarea();8var selection = wptextarea.getSelection();9var wptextarea = new Wptextarea();10wptextarea.insertText("Hello World");11var wptextarea = new Wptextarea();12wptextarea.deleteText(1, 5);13var wptextarea = new Wptextarea();14wptextarea.setSelectionRange(1, 5);15var wptextarea = new Wptextarea();16var selectionRange = wptextarea.getSelectionRange();17var wptextarea = new Wptextarea();18wptextarea.insertTextAt("Hello World", 1);19var wptextarea = new Wptextarea();20wptextarea.deleteTextAt(1, 5);21var wptextarea = new Wptextarea();22wptextarea.insertLine("Hello World");23var wptextarea = new Wptextarea();24wptextarea.deleteLine(1, 5);25var wptextarea = new Wptextarea();26wptextarea.insertLines(["Hello World"]);27var wptextarea = new Wptextarea();28wptextarea.deleteLines(1, 5);

Full Screen

Using AI Code Generation

copy

Full Screen

1var textbox = new wptextbox();2textbox.setText("Hello World");3var textbox = new wptextbox();4var text = textbox.getText();5var textbox = new wptextbox();6textbox.setReadOnly(true);7var textbox = new wptextbox();8textbox.setEnabled(true);9var textbox = new wptextbox();10textbox.setVisible(true);11var textbox = new wptextbox();12textbox.setEnabled(true);13var textbox = new wptextbox();14textbox.setEnabled(true);15var textbox = new wptextbox();16textbox.setEnabled(true);17var textbox = new wptextbox();18textbox.setEnabled(true);19var textbox = new wptextbox();20textbox.setEnabled(true);21var textbox = new wptextbox();22textbox.setEnabled(true);23var textbox = new wptextbox();24textbox.setEnabled(true);25var textbox = new wptextbox();26textbox.setEnabled(true);27var textbox = new wptextbox();28textbox.setEnabled(true);29var textbox = new wptextbox();30textbox.setEnabled(true);31var textbox = new wptextbox();32textbox.setEnabled(true);

Full Screen

Using AI Code Generation

copy

Full Screen

1var textBox = wptextbox();2textBox.setText("Hello World");3var textBox = wptextbox();4var text = textBox.getText();5var textBox = wptextbox();6textBox.setPlaceholderText("Enter your name");7var textBox = wptextbox();8var text = textBox.getPlaceholderText();9var textBox = wptextbox();10textBox.setPlacement("right");11var textBox = wptextbox();12var placement = textBox.getPlacement();13var textBox = wptextbox();14textBox.setPlacement("right");15var textBox = wptextbox();16var placement = textBox.getPlacement();17var textBox = wptextbox();18textBox.setClearButtonEnabled(true);19var textBox = wptextbox();20var enabled = textBox.isClearButtonEnabled();21var textBox = wptextbox();22textBox.setClearButtonMode("always");23var textBox = wptextbox();24var mode = textBox.getClearButtonMode();25var textBox = wptextbox();26textBox.setClearButtonImage("images/clear.png");27var textBox = wptextbox();28var image = textBox.getClearButtonImage();29var textBox = wptextbox();30textBox.setClearButtonImageSize(30, 30);31var textBox = wptextbox();32var size = textBox.getClearButtonImageSize();33var textBox = wptextbox();

Full Screen

Using AI Code Generation

copy

Full Screen

1var textBox = new WpTextbox();2textBox.setText("text");3var textBox = new WpTextbox();4var text = textBox.getText();5var textBox = new WpTextbox();6textBox.setText("text");7var textBox = new WpTextbox();8var text = textBox.getText();9var textBox = new WpTextbox();10textBox.setText("text");11var textBox = new WpTextbox();12var text = textBox.getText();13var textBox = new WpTextbox();14textBox.setText("text");15var textBox = new WpTextbox();16var text = textBox.getText();17var textBox = new WpTextbox();18textBox.setText("text");19var textBox = new WpTextbox();20var text = textBox.getText();21var textBox = new WpTextbox();22textBox.setText("text");23var textBox = new WpTextbox();24var text = textBox.getText();25var textBox = new WpTextbox();26textBox.setText("text");27var textBox = new WpTextbox();28var text = textBox.getText();29var textBox = new WpTextbox();30textBox.setText("text");31var textBox = new WpTextbox();32var text = textBox.getText();33var textBox = new WpTextbox();34textBox.setText("text");35var textBox = new WpTextbox();36var text = textBox.getText();

Full Screen

Using AI Code Generation

copy

Full Screen

1var win = new Window('dialog', 'test');2var gp = win.add('group');3var tb = gp.add('edittext', undefined, 'test');4var btn = gp.add('button', undefined, 'test');5btn.onClick = function() {6 tb.text = 'test';7}8win.show();9var win = new Window('dialog', 'test');10var gp = win.add('group');11var tb = gp.add('edittext', undefined, 'test');12var btn = gp.add('button', undefined, 'test');13btn.onClick = function() {14 tb.text = 'test';15}16win.show();17var win = new Window('dialog', 'test');18var gp = win.add('group');19var tb = gp.add('edittext', undefined, 'test');20var btn = gp.add('button', undefined, 'test');21btn.onClick = function() {22 tb.text = 'test';23}24win.show();25var win = new Window('dialog', 'test');26var gp = win.add('group');27var tb = gp.add('edittext', undefined, 'test');28var btn = gp.add('button', undefined, 'test');29btn.onClick = function() {30 tb.text = 'test';31}32win.show();33var win = new Window('dialog', 'test');34var gp = win.add('group');35var tb = gp.add('edittext', undefined, 'test');36var btn = gp.add('button', undefined, 'test');37btn.onClick = function() {38 tb.text = 'test';39}40win.show();41var win = new Window('dialog', 'test');42var gp = win.add('group');43var tb = gp.add('edittext', undefined, 'test');44var btn = gp.add('button', undefined, 'test');45btn.onClick = function() {46 tb.text = 'test';47}48win.show();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptextField = new WpTextField();2wptextField.setText("test");3function WpTextField() {4 this.setText = function (text) {5 }6}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful