Example #1
0
 public void Save(int MaterielID, int _TaskID)
 {
     _taskID     = _TaskID;
     _materielID = MaterielID;
     gridView1.UpdateCurrentRow();
     gridView1.CloseEditor();
     dt.AcceptChanges();
     if (_IsEdit)
     {
         DataSet ds = new DataSet();
         ds.DataSetName = "ds";
         ds.Tables.Add(dt.Copy());
         ds.Tables[0].TableName = "dtt";
         byte[] bb = ZipJpg.Ds2Byte(ds);
         BasicClass.GetDataSet.ExecSql(bllOT, "SaveSizePartList", new object[] { bb, MaterielID, _TaskID });
     }
     _IsEdit = false;
 }
Example #2
0
        public void Save(int MainID, int materielID, int BrandID)
        {
            _mainID     = MainID;
            _materielID = materielID;
            gridView1.UpdateCurrentRow();
            gridView1.CloseEditor();
            dt.AcceptChanges();
            if (_IsEdit)
            {
                DataSet ds = new DataSet();
                ds.Tables.Add(dt.Copy());
                byte[]   bb = ZipJpg.Ds2Byte(ds);
                object[] o  = new object[] { bb, _mainID, _materielID, _tableTypeID, BrandID };
                BasicClass.GetDataSet.ExecSql(bllOT, "SaveTemInfo", o);

                //DataTable dtt = dt.Copy();
                //BasicClass.GetDataSet.ftc.ExecSql(bllOT, "SaveTemInfo", new object[] { dtt });
                //DataSet ds = new DataSet();
                //ds.Tables.Add(dt.Copy());
                //BasicClass.GetDataSet.ftc.ExecSql(bllOT, "SaveTemInfo", new object[] { ds });
            }
            _IsEdit = false;
        }