public void Save_process_stage() { CTemplate_method_process_stageFactory faTemplate_method_process_stage = new CTemplate_method_process_stageFactory(); for (int i = 0; i < lst_process_stage.Count; i++) { lst_process_stage[i].Order_process_stage = Convert.ToInt16(i); if (lst_process_stage[i].Idprocess == 0) lst_process_stage[i].Idprocess = null; if (lst_process_stage[i].Idprocess_stage == 0) lst_process_stage[i].Idprocess_stage = null; if (!faTemplate_method_process_stage.Update(lst_process_stage[i])) faTemplate_method_process_stage.Insert(lst_process_stage[i]); } }
public void Save_process_stage() { CTemplate_method_process_stageFactory faTemplate_method_process_stage = new CTemplate_method_process_stageFactory(); for (int i = 0; i < lst_process_stage.Count; i++) { lst_process_stage[i].Order_process_stage = Convert.ToInt16(i); if (lst_process_stage[i].Idprocess == 0) { lst_process_stage[i].Idprocess = null; } if (lst_process_stage[i].Idprocess_stage == 0) { lst_process_stage[i].Idprocess_stage = null; } if (!faTemplate_method_process_stage.Update(lst_process_stage[i])) { faTemplate_method_process_stage.Insert(lst_process_stage[i]); } } }