mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-07-01 05:14:17 +00:00
add project adins
This commit is contained in:
parent
ad06ac5505
commit
f8f85d679d
5299 changed files with 625430 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.adins.mss.foundation.questiongenerator.form.QuestionView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/questionTwsLayout">
|
||||
<TextView
|
||||
android:id="@+id/questionTwsLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0. Label"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/questionTwsAnswer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:textColorHint="@color/shadowColor"
|
||||
android:textColor="@drawable/edit_text_selector"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</com.adins.mss.foundation.questiongenerator.form.QuestionView>
|
|
@ -0,0 +1,20 @@
|
|||
package com.services.models;
|
||||
|
||||
import com.adins.mss.dao.TaskH;
|
||||
import com.adins.mss.foundation.http.MssResponseType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class JsonResponseRetrieveTaskList extends MssResponseType {
|
||||
List<TaskH> listTaskList;
|
||||
|
||||
public List<TaskH> getListTaskList() {
|
||||
return listTaskList;
|
||||
}
|
||||
|
||||
public void setListTaskList(List<TaskH> listTaskList) {
|
||||
this.listTaskList = listTaskList;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,193 @@
|
|||
package com.adins.mss.dao;
|
||||
|
||||
import com.adins.mss.dao.DaoSession;
|
||||
import de.greenrobot.dao.DaoException;
|
||||
|
||||
import com.adins.mss.base.util.ExcludeFromGson;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
|
||||
/**
|
||||
* Entity mapped to table "MS_MENU".
|
||||
*/
|
||||
public class Menu {
|
||||
|
||||
/** Not-null value. */
|
||||
@SerializedName("uuid_menu")
|
||||
private String uuid_menu;
|
||||
@SerializedName("menu_id")
|
||||
private String menu_id;
|
||||
@SerializedName("flag_job")
|
||||
private String flag_job;
|
||||
@SerializedName("is_visible")
|
||||
private String is_visible;
|
||||
@SerializedName("usr_crt")
|
||||
private String usr_crt;
|
||||
@SerializedName("dtm_crt")
|
||||
private java.util.Date dtm_crt;
|
||||
@SerializedName("usr_upd")
|
||||
private String usr_upd;
|
||||
@SerializedName("dtm_upd")
|
||||
private java.util.Date dtm_upd;
|
||||
@SerializedName("uuid_user")
|
||||
private String uuid_user;
|
||||
|
||||
/** Used to resolve relations */
|
||||
private transient DaoSession daoSession;
|
||||
|
||||
/** Used for active entity operations. */
|
||||
private transient MenuDao myDao;
|
||||
|
||||
private User user;
|
||||
private String user__resolvedKey;
|
||||
|
||||
|
||||
public Menu() {
|
||||
}
|
||||
|
||||
public Menu(String uuid_menu) {
|
||||
this.uuid_menu = uuid_menu;
|
||||
}
|
||||
|
||||
public Menu(String uuid_menu, String menu_id, String flag_job, String is_visible, String usr_crt, java.util.Date dtm_crt, String usr_upd, java.util.Date dtm_upd, String uuid_user) {
|
||||
this.uuid_menu = uuid_menu;
|
||||
this.menu_id = menu_id;
|
||||
this.flag_job = flag_job;
|
||||
this.is_visible = is_visible;
|
||||
this.usr_crt = usr_crt;
|
||||
this.dtm_crt = dtm_crt;
|
||||
this.usr_upd = usr_upd;
|
||||
this.dtm_upd = dtm_upd;
|
||||
this.uuid_user = uuid_user;
|
||||
}
|
||||
|
||||
/** called by internal mechanisms, do not call yourself. */
|
||||
public void __setDaoSession(DaoSession daoSession) {
|
||||
this.daoSession = daoSession;
|
||||
myDao = daoSession != null ? daoSession.getMenuDao() : null;
|
||||
}
|
||||
|
||||
/** Not-null value. */
|
||||
public String getUuid_menu() {
|
||||
return uuid_menu;
|
||||
}
|
||||
|
||||
/** Not-null value; ensure this value is available before it is saved to the database. */
|
||||
public void setUuid_menu(String uuid_menu) {
|
||||
this.uuid_menu = uuid_menu;
|
||||
}
|
||||
|
||||
public String getMenu_id() {
|
||||
return menu_id;
|
||||
}
|
||||
|
||||
public void setMenu_id(String menu_id) {
|
||||
this.menu_id = menu_id;
|
||||
}
|
||||
|
||||
public String getFlag_job() {
|
||||
return flag_job;
|
||||
}
|
||||
|
||||
public void setFlag_job(String flag_job) {
|
||||
this.flag_job = flag_job;
|
||||
}
|
||||
|
||||
public String getIs_visible() {
|
||||
return is_visible;
|
||||
}
|
||||
|
||||
public void setIs_visible(String is_visible) {
|
||||
this.is_visible = is_visible;
|
||||
}
|
||||
|
||||
public String getUsr_crt() {
|
||||
return usr_crt;
|
||||
}
|
||||
|
||||
public void setUsr_crt(String usr_crt) {
|
||||
this.usr_crt = usr_crt;
|
||||
}
|
||||
|
||||
public java.util.Date getDtm_crt() {
|
||||
return dtm_crt;
|
||||
}
|
||||
|
||||
public void setDtm_crt(java.util.Date dtm_crt) {
|
||||
this.dtm_crt = dtm_crt;
|
||||
}
|
||||
|
||||
public String getUsr_upd() {
|
||||
return usr_upd;
|
||||
}
|
||||
|
||||
public void setUsr_upd(String usr_upd) {
|
||||
this.usr_upd = usr_upd;
|
||||
}
|
||||
|
||||
public java.util.Date getDtm_upd() {
|
||||
return dtm_upd;
|
||||
}
|
||||
|
||||
public void setDtm_upd(java.util.Date dtm_upd) {
|
||||
this.dtm_upd = dtm_upd;
|
||||
}
|
||||
|
||||
public String getUuid_user() {
|
||||
return uuid_user;
|
||||
}
|
||||
|
||||
public void setUuid_user(String uuid_user) {
|
||||
this.uuid_user = uuid_user;
|
||||
}
|
||||
|
||||
/** To-one relationship, resolved on first access. */
|
||||
public User getUser() {
|
||||
String __key = this.uuid_user;
|
||||
if (user__resolvedKey == null || user__resolvedKey != __key) {
|
||||
if (daoSession == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
UserDao targetDao = daoSession.getUserDao();
|
||||
User userNew = targetDao.load(__key);
|
||||
synchronized (this) {
|
||||
user = userNew;
|
||||
user__resolvedKey = __key;
|
||||
}
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(User user) {
|
||||
synchronized (this) {
|
||||
this.user = user;
|
||||
uuid_user = user == null ? null : user.getUuid_user();
|
||||
user__resolvedKey = uuid_user;
|
||||
}
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#delete(Object)}. Entity must attached to an entity context. */
|
||||
public void delete() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.delete(this);
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#update(Object)}. Entity must attached to an entity context. */
|
||||
public void update() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.update(this);
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#refresh(Object)}. Entity must attached to an entity context. */
|
||||
public void refresh() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.refresh(this);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.adins.mss.foundation.operators;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.adins.mss.base.util.NPWPValidation;
|
||||
import com.gadberry.utility.expression.Argument;
|
||||
import com.gadberry.utility.expression.Expression;
|
||||
import com.gadberry.utility.expression.Function;
|
||||
import com.gadberry.utility.expression.InvalidArgumentsException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gigin.ginanjar on 10/10/2016.
|
||||
*/
|
||||
|
||||
public class CheckNPWPFunction extends Function {
|
||||
|
||||
@Keep
|
||||
public CheckNPWPFunction(Expression expression) {
|
||||
super(expression);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkArgs(List<Argument> args) throws InvalidArgumentsException {
|
||||
if (args.size() > 1) {
|
||||
throw new InvalidArgumentsException(
|
||||
"Check NPWP requires a maximum of one argument."
|
||||
);
|
||||
}
|
||||
for (Argument arg : args) {
|
||||
if (arg.isNull()) {
|
||||
throw new InvalidArgumentsException(
|
||||
"Check NPWP cannot accept null arguments. At least one argument provided was null.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Argument resolve() {
|
||||
String condition = getArgument(0).toString();
|
||||
NPWPValidation validation = new NPWPValidation(condition);
|
||||
boolean isValid = validation.getValidation();
|
||||
return new Argument(isValid, getResolver());
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue