示例#1
0
        public static void UpdateField(string ID, string FieldName, string companyID, string tableType)
        {
            FieldDAL.UpdateField(FieldName, ID);
            DataSet fieldsDS = CompanyBLL.GetCacheFields(companyID, tableType);

            DataRow[] drs = fieldsDS.Tables[0].Select("ID=" + ID);
            if (drs.Length == 1)
            {
                drs[0]["FieldName"] = FieldName;
            }
            fieldsDS.AcceptChanges();
        }
示例#2
0
        public static void UpdateField(string ID, string FName, string Misk, string IsDispaly, string companyID, string tableType)
        {
            FieldDAL.UpdateField(FName, Misk, IsDispaly, ID);
            DataSet fieldsDS = CompanyBLL.GetCacheFields(companyID, tableType);

            DataRow[] drs = fieldsDS.Tables[0].Select("ID=" + ID);
            if (drs.Length == 1)
            {
                drs[0]["FName"]     = FName;
                drs[0]["Misk"]      = Misk;
                drs[0]["IsDisplay"] = IsDispaly;
            }
            fieldsDS.AcceptChanges();
        }
示例#3
0
 public DataSet GetSearchFields(string companyID, string tableType)
 {
     return(CompanyBLL.GetCacheFields(companyID, tableType));
 }