|
@@ -142,6 +142,8 @@ public class CustomSignDialog extends Dialog {
|
|
|
btnConfirm.setOnClickListener(onClickListener);
|
|
|
btnCancel.setOnClickListener(onClickListener);
|
|
|
etUserId.setOnEditorActionListener(onEditorActionListener);
|
|
|
+ etUserId.setOnClickListener(onClickListener);
|
|
|
+ etUserId.setOnFocusChangeListener(onFocusChangeListener);
|
|
|
}
|
|
|
|
|
|
private View.OnClickListener onClickListener = new View.OnClickListener() {
|
|
@@ -169,10 +171,23 @@ public class CustomSignDialog extends Dialog {
|
|
|
setSignImage();
|
|
|
} else if (v == btnCancel) {
|
|
|
dismiss();
|
|
|
+ } else if (v == etUserId) {
|
|
|
+ Log.e(TAG, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
|
|
|
+ etUserId.selectAll();
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ private View.OnFocusChangeListener onFocusChangeListener = new View.OnFocusChangeListener() {
|
|
|
+ @Override
|
|
|
+ public void onFocusChange(View v, boolean hasFocus) {
|
|
|
+ Log.e(TAG, "dsfsdfasfdhdfggdfhrhgjfghfgjffgdfg -- > " + hasFocus);
|
|
|
+ etUserId.setSelection(0, etUserId.getText().toString().length());
|
|
|
+// etUserId.setSelectAllOnFocus(true);
|
|
|
+// etUserId.selectAll();
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
private void setSignImage() {
|
|
|
|
|
|
final CallBack callBack = new CallBack() {
|
|
@@ -281,7 +296,7 @@ public class CustomSignDialog extends Dialog {
|
|
|
|
|
|
String userId = etUserId.getText().toString().trim();
|
|
|
HashMap<String, String> mData = new HashMap<String, String>();
|
|
|
- mData.put("userId", userId);
|
|
|
+ mData.put("userId", userId.trim().toUpperCase());
|
|
|
mData.put("instCd", BuildConfig.INST_CD);
|
|
|
|
|
|
userSignDataInfoVO = getUserSignDataInfo(mData);
|
|
@@ -310,7 +325,7 @@ public class CustomSignDialog extends Dialog {
|
|
|
if (!image.equals("")) {
|
|
|
signImage = userSignDataInfoVO.getSignData().getBytes();
|
|
|
byte[] imgbytes = Base64.decode(signImage, Base64.DEFAULT);
|
|
|
- signPadImg = BitmapFactory.decodeByteArray(imgbytes, 0, signImage.length);
|
|
|
+ signPadImg = BitmapFactory.decodeByteArray(imgbytes, 0, imgbytes.length);
|
|
|
spSignImage.setSignatureBitmap(signPadImg);
|
|
|
}
|
|
|
}
|
|
@@ -322,6 +337,7 @@ public class CustomSignDialog extends Dialog {
|
|
|
|
|
|
try {
|
|
|
SoapObject object = connection.execute().get();
|
|
|
+ Log.e(TAG, "object -- > " + object);
|
|
|
userSignDataInfoVO = SoapParser.getUserSignDataInfo(object);
|
|
|
|
|
|
} catch (ExecutionException e) {
|