示例#1
0
 public T_C_REPAIR_DAY(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#2
0
 public T_C_PARAMETER(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_C_PARAMETER);
     TableName = "C_PARAMETER".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#3
0
        public List <C_PARAMETER> Get_Interface_Parameter_1(string Function_Name, OleExec DB, DB_TYPE_ENUM DBType)
        {
            string                      Message       = "";
            List <C_PARAMETER>          ListInterface = new List <C_PARAMETER>();
            Dictionary <string, string> Dic_Interface = new Dictionary <string, string>();
            string                      StrSql        = $@"select parameter_name,parameter_value from C_PARAMETER where function_name='{Function_Name}' ";;
            DataTable                   dt            = DB.ExecSelect(StrSql).Tables[0];

            if (dt.Rows.Count > 0)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    C_PARAMETER Row = GetRow(dr);
                    ListInterface.Add(Row);
                }
                return(ListInterface);
            }
            else
            {
                if (dt.Rows.Count > 1)
                {
                    Message = "配置信息有多筆!";
                }
                else if (dt.Rows.Count == 0)
                {
                    Message = "信息未配置";
                }

                return(null);
            }
        }
示例#4
0
 public T_R_WO_REGION(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#5
0
 public T_R_STOCK(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_R_STOCK);
     TableName = "R_STOCK".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#6
0
 public T_R_WO_ITEM_TJ(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_R_WO_ITEM_TJ);
     TableName = "R_WO_ITEM_TJ".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#7
0
 public T_C_SERIES(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
 public T_C_SAP_STATION_MAP(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
 public T_C_SAP_STATION_MAP(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_C_SAP_STATION_MAP);
     TableName = "C_SAP_STATION_MAP".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#10
0
 public T_r_repair_action(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#11
0
 public T_r_repair_action(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_r_repair_action);
     TableName = "r_repair_action".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#12
0
 public T_C_WT_CONFIG(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#13
0
 public T_H_WO_TEXT(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#14
0
 public T_C_REPAIR_DAY(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_C_REPAIR_DAY);
     TableName = "C_REPAIR_DAY".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#15
0
        public bool CheckWoItemByWo(string Workorderno, string PartNo, bool Download_Auto, string ColumnName, OleExec DB, DB_TYPE_ENUM DBType)
        {
            bool   CheckFlag    = false;
            string StrSql       = "";
            string StrReturnMsg = "";
            int    n            = 0;

            if (Download_Auto)
            {
                StrSql = $@"select * from R_WO_ITEM where AUFNR='{Workorderno}' and MATNR='{ PartNo }' ";
                DataTable dt = DB.ExecSelect(StrSql).Tables[0];
                if (dt.Rows.Count > 0)
                {
                    CheckFlag = true;
                }
            }
            else
            {
                StrSql = $@"select * from R_WO_ITEM where AUFNR='{Workorderno}' and MATNR='{ PartNo }'";
                DataTable dt = DB.ExecSelect(StrSql).Tables[0];
                if (dt.Rows.Count > 0)
                {
                    DB.ExecSQL($@" delete from H_WO_ITEM where AUFNR = '{Workorderno}' and MATNR='{ PartNo }'");
                    StrSql       = $@"insert into H_WO_ITEM(ID,{ ColumnName }) ";
                    StrSql       = StrSql + $@" select* from R_WO_ITEM where AUFNR = '{Workorderno}'  and MATNR='{ PartNo }'";
                    StrReturnMsg = DB.ExecSQL(StrSql);
                    int.TryParse(StrReturnMsg, out n);
                    if (n > 0)
                    {
                        StrSql       = $@" delete from R_WO_ITEM where AUFNR = '{Workorderno}' and MATNR='{ PartNo }'";
                        StrReturnMsg = DB.ExecSQL(StrSql);

                        int.TryParse(StrReturnMsg, out n);
                        CheckFlag = false;
                    }
                }
            }
            return(CheckFlag);
        }
示例#16
0
 public T_SD_TO_HEAD(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#17
0
 public T_R_WO_ITEM_TJ(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#18
0
 public T_SD_TO_HEAD(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_SD_TO_HEAD);
     TableName = "SD_TO_HEAD".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#19
0
 public T_C_PACKING_TYPE(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#20
0
 public T_R_MRB_GT(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
     RowType   = typeof(Row_R_MRB_GT);
     TableName = "R_MRB_GT".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#21
0
 public T_C_SERIES(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_C_SERIES);
     TableName = "C_SERIES".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#22
0
 public T_R_Station_Action_Para(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#23
0
 public T_R_STOCK(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#24
0
 public T_R_Station_Action_Para(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_R_Station_Action_Para);
     TableName = "R_Station_Action_Para".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#25
0
 public T_C_PARAMETER(string _TableName, OleExec DB, DB_TYPE_ENUM DBType) : base(_TableName, DB, DBType)
 {
 }
示例#26
0
 public T_H_MRB_GT(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_H_MRB_GT);
     TableName = "H_MRB_GT".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }
示例#27
0
        public Dictionary <String, String> Get_Interface_Parameter(string Function_Name, OleExec DB, DB_TYPE_ENUM DBType)
        {
            string    strSql = $@"select parameter_name,parameter_value from C_PARAMETER where function_name='{Function_Name}' ";
            DataTable dt     = DB.ExecSelect(strSql).Tables[0];
            Dictionary <string, string> SAP_Para = new Dictionary <string, string>();

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    SAP_Para.Add(dt.Rows[i]["parameter_name"].ToString(), dt.Rows[i]["parameter_value"].ToString());
                }
                return(SAP_Para);
            }
            else
            {
                return(null);
            }
        }
示例#28
0
        public string EditWoItem(string EditSql, OleExec DB, DB_TYPE_ENUM DBType)
        {
            string ReturnMsg = DB.ExecSQL(EditSql);

            return(ReturnMsg);
        }
示例#29
0
        public Dictionary <String, String> Get_Interface_Parameter_2(string Function_Name, OleExec DB, DB_TYPE_ENUM DBType)
        {
            string    strSql = $@"select parameter_name,parameter_value from C_PARAMETER where function_name='{Function_Name}' ";
            DataTable dt     = DB.ExecSelect(strSql).Tables[0];
            Dictionary <string, string> SAP_Para = new Dictionary <string, string>();

            if (dt.Rows.Count > 0)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    SAP_Para.Add(dr["parameter_name"].ToString(), dr["parameter_value"].ToString());
                }
                return(SAP_Para);
            }
            else
            {
                return(null);
            }

            //InsertLog(BU, Program_Name, Item_Name, Message, StrSql, Emp_No, DB, DBType);
        }
示例#30
0
 public T_R_REPAIR_TRANSFER(OleExec DB, DB_TYPE_ENUM DBType)
 {
     RowType   = typeof(Row_R_REPAIR_TRANSFER);
     TableName = "R_REPAIR_TRANSFER".ToUpper();
     DataInfo  = GetDataObjectInfo(TableName, DB, DBType);
 }