Add dialog for set branch user
This commit is contained in:
parent
f99adaf109
commit
0957cf673f
|
@ -2059,7 +2059,10 @@ function grid_usuarios_click(id, e, node){
|
|||
|
||||
function set_user_branch(id, state){
|
||||
if(state){
|
||||
msg_ok('Show')
|
||||
win_set_branch_user.init()
|
||||
$$('txt_user_id').setValue(id)
|
||||
//~ $$('txt_user_name').setValue(id)
|
||||
$$('win_set_branch_user').show()
|
||||
}else{
|
||||
var args = {
|
||||
opt: 'set_branch_null',
|
||||
|
@ -2084,6 +2087,16 @@ function set_user_branch(id, state){
|
|||
}
|
||||
|
||||
|
||||
function cmd_set_branch_user_save_click(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
function cmd_set_branch_user_cancel_click(){
|
||||
$$('win_set_branch_user').hide()
|
||||
}
|
||||
|
||||
|
||||
function grid_usuarios_on_check(row, column, state){
|
||||
|
||||
var values = {
|
||||
|
|
|
@ -1614,3 +1614,35 @@ var admin_ui_leyendas_fiscales = {
|
|||
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
var body_set_branch_user = {rows: [{minHeight: 10},
|
||||
{view: 'text', id: 'txt_user_id', readonly: true, hidden: true},
|
||||
//~ {view: 'text', id: 'txt_user_name', label: 'Usuario', readonly: true},
|
||||
{view: 'richselect', id: 'lst_branchs', name: 'lst_branchs',
|
||||
label: 'Sucursales: ', required: true, options: []},
|
||||
{minHeight: 10},
|
||||
{cols: [{},
|
||||
{view: 'button', id: 'cmd_set_branch_user_save', label: 'Guardar'}, {},
|
||||
{view: 'button', id: 'cmd_set_branch_user_cancel', label: 'Cancelar', type: 'danger'}, {}
|
||||
]},
|
||||
{minHeight: 20},
|
||||
]}
|
||||
|
||||
|
||||
var win_set_branch_user = {
|
||||
init: function(){
|
||||
webix.ui({
|
||||
view: 'window',
|
||||
id: 'win_set_branch_user',
|
||||
width: 400,
|
||||
modal: true,
|
||||
position: 'center',
|
||||
head: 'Asignar Sucursal',
|
||||
body: body_set_branch_user,
|
||||
})
|
||||
$$('cmd_set_branch_user_save').attachEvent('onItemClick', cmd_set_branch_user_save_click)
|
||||
$$('cmd_set_branch_user_cancel').attachEvent('onItemClick', cmd_set_branch_user_cancel_click)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue